问题
I'm using React with JSX with react-tools to compile the JSX code to JavaScript.
What ES6 features are supported in JSX with the harmony
option enabled?
回答1:
Thanks to kangax for the compatibility table
Update: Just use babel (previously named 6to5) to compile your JSX. It's faster and has better es6 support anyway.
来源:https://stackoverflow.com/questions/27414384/what-es6-features-are-supported-in-jsx