meteor / react-packages

Meteor packages for a great React developer experience
http://guide.meteor.com/react.html
Other
574 stars 159 forks source link

createClass React package is deprecated - added react-meteor-data@0.2.12 and fresh project #227

Closed denzils closed 7 years ago

denzils commented 7 years ago

Hi so I did meteor add react-meteor-data@0.2.12, but I am still getting the warning, even though its a fresh project:

Warning: Accessing createClass via the main React package is deprecated, and will be removed in React v16.0. Use a plain JavaScript class instead. If you're not yet ready to migrate, create-react-class v15.* is available on npm as a temporary, drop-in replacement. For more info see https://fb.me/react-create-class

Was I supposed to change what I'm importing and if so, to what?

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import { Meteor } from 'meteor/meteor';
import { createContainer } from 'meteor/react-meteor-data';
import { HTTP } from 'meteor/http';