|
|
|
|
|
by danmaz74
4002 days ago
|
|
We're considering trying react for a new project, and just read about the adoption of Babel [1] instead of the internal transpiler previously used for JSX. One question: does this mean that JSX will be able to use ES6 syntax supported by Babel out of the box? If so, will this be the default for this new version of React? I ask the questions also because we would really like to be able to use React with CoffeeScript, but, even if there are many solutions to do so, no one is supported by Facebook and we're worried about future compatibility. Is adopting Babel going to influence the ability to use React with CS? [1] https://facebook.github.io/react/blog/2015/06/12/deprecating... |
|
There's a CoffeeScript JSX transformer here if you're interested:
https://github.com/jsdf/coffee-react
and we'll continue to support using React without JSX, and though we use Babel now internally, we compile React itself to ES5 before putting it on npm so you don't need to use Babel if you don't want to.