-
Notifications
You must be signed in to change notification settings - Fork 104
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
Using ES6 classes for more idiomatic React? #4
Comments
Thanks! I plan to be adding the ES6 version as well. Probably after I finish Part 2. My application is still on I will make a note that this guide is initially written for But if anyone wants to add ES6 examples feel free! |
Using ES6 classes means you cannot currently use mixins and mixins are very useful. It should be possible to cobble together a way to use existing mixins in ES6 classes |
Unless React moves away from the existing mixins system entirely and towards higher-order components and class decorators instead which seems to be the case. The React 0.13 release notes certainly seemed to say that mixins were a stopgap and that they'd be dropped (alongside
See also facebook/react#1380 |
Great draft!
Posit: this guide would have a longer lifespan if it shifted away from React.createClass and towards ES6 classes/components. My understanding is that React is rapidly moving towards a purely functional structure, and while using ES6 classes is only a midway step, it is still a step in the right direction.
The text was updated successfully, but these errors were encountered: