-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use 'create-react-class' package instead of React.createClass #29
Comments
+1 |
+1 |
@MichaelDeBoey |
@maksim-lunochkin I don't have the time to maintain the package, so I don't know if publishing a scoped package would be a good idea. 😕 |
@MichaelDeBoey I can maintain the package then. |
@maksim-lunochkin You can go ahead and use my solution as the basis of your scoped package if you want 🙂 |
there is scoped package: https://www.npmjs.com/package/@maxlun86/react-highlight |
React.createClass
has been deprecated and extracted to it's own package since React v15.5.0.The following warning is displayed if that version of React is used:
Warning: Highlight: React.createClass is deprecated and will be removed in version 16. Use plain JavaScript classes instead. If you're not yet ready to migrate, create-react-class is available on npm as a drop-in replacement.
See Migrating from
React.createClass
to fix this.This could be a temporary fix, but I think moving to ES6 classes is more appropriate :-)
The text was updated successfully, but these errors were encountered: