You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
React 15.5.0 issues a warning that PropTypes and React.createClass should be pulled from separate dependencies instead of being imported from React itself (React.createClass is only used in the tests). This warning is in anticipation of React 16 which will remove them all together.
To fix, remove imports of PropTypes from react and import it instead from the prop-types package. Also import createClass from the create-react-class package instead of react.
The text was updated successfully, but these errors were encountered:
plemarquand
pushed a commit
to plemarquand/isomorphic-style-loader
that referenced
this issue
Apr 13, 2017
React 15.5.0 issues a warning that
PropTypes
andReact.createClass
should be pulled from separate dependencies instead of being imported from React itself (React.createClass
is only used in the tests). This warning is in anticipation of React 16 which will remove them all together.To fix, remove imports of PropTypes from
react
and import it instead from theprop-types
package. Also importcreateClass
from thecreate-react-class
package instead ofreact
.The text was updated successfully, but these errors were encountered: