What ES6 features are supported in JSX?

谁说胖子不能爱 提交于 2020-01-01 04:29:10

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!