-
Notifications
You must be signed in to change notification settings - Fork 362
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
Warning: A Component: React.createClass is deprecated #881
Comments
I would advise working on a solution that extends |
@bhauman the PR that I sent uses the official react fallback for it; I guess this is the safest we can get. |
@wilkerlucio its a valid solution It has its limitations though. It depends on another package, which will be probably be deprecated itself much sooner than we want. It limits users to fairly recent React versions whereas the ability to extend I guess I'm just saying that it's probably time we get onboard the train. |
@bhauman not sure what you mean, according to React docs: https://facebook.github.io/react/docs/react-without-es6.html using the |
@bhauman I mean, using the class syntax would mean having to support it on CLJS somehow, or rely on some ugly hacks with |
This is indeed possible. You won't have to change any deps whatsoever if we extend |
I've just worked this out in Devcards I can get you some example code. |
I would like to see that, but being honest, I prefer using the official implementation for it, there are plenty of caveats in the |
I hear you, it is a bigger lift in this case to verify that everything is working correctly. |
Yeah after looking at it, it is a bit more invasive to make these changes to Om. |
Thanks for the links, I'm glad you could make it work with so little. As you said, the change is not so simple in |
Any updates on this now that React 16.0 is out. From the looks of it this is all that is required to make om 16.0 compatible. |
After upgrading om to version "1.0.0-beta1", the following error is printed in the console (in development mode only)
react.inc.js:3287 Warning: A Component: 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.
The text was updated successfully, but these errors were encountered: