-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
Autobinding instead of binding in the constructor #158
Comments
Oooh I didn't know about that, much nicer! Would love a PR for this. |
FWIW, that syntax (class fields/static properties) isn't an ES6 feature, it is a stage 1 proposal that has support only in Babel. I don't have a problem with using experimental syntax but I definitely think it's worth documenting anything like this, since it could change on a whim. Docs should make it clear the project relies on experimental language features, which ones, and why. |
👍 Thanks for the notice, I hope I don't forget to document it! |
I opened #165 to track it. |
Thanks @jbinto, closing this issue! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
See https://facebook.github.io/react/blog/2015/01/27/react-v0.13.0-beta-1.html#autobinding
Prebinding in the constructor:
Syntactical sugar:
The text was updated successfully, but these errors were encountered: