Gil Birman
Gil Birman

Reputation: 35920

What ES6 features are supported in JSX?

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?

Upvotes: 11

Views: 3763

Answers (1)

Gil Birman
Gil Birman

Reputation: 35920

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.

Upvotes: 9

Related Questions