-
Notifications
You must be signed in to change notification settings - Fork 760
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
Enable harmony flag for ES6 support #43
Comments
Hi, |
JSXTransformer doesn't support that, at least not in shipping version. We added it in master though and it'll be a part of 0.11 (or maybe 0.10.1) release. Also, that sample code you have won't actually work. Extending React.component isn't a thing yet (maybe one day, but not yet) |
Then what's that Groups post going on about? https://groups.google.com/d/msg/reactjs/zbHSSnDQK8A/6rry4xxWpSkJ |
If you read the rest of that, he linked to his app which is using https://github.com/elucidata/react-coffee, which adds We should leave this open so we remember to add harmony support. |
Harmony works now so if you're interested in adding this, it would probably be appreciated :) |
I thought adding the Harmony switch was a good idea, so I had a go at it: #107 |
Added in #136 ! |
According to this, if you enable the
--harmony
flag, we can do cool things like:Makes for cleaner and consistent code!
The text was updated successfully, but these errors were encountered: