I'm genuinely curious about all the ES6/ES7 articles. Is the interest driven from the eventual native support in future browsers and being able to drop transpiler dependencies?
I'm genuinely curious about all the ES6/ES7 articles. Is the interest driven from the eventual native support in future browsers and being able to drop transpiler dependencies?
ES6 improves the language without borking the syntax so much.
To add something more constructive, CoffeeScript is still just a transpiler. I think the long-term goal is for browsers to "natively" interpret/run ES6 code rather than forever transpiling to ES5. Either that, or we actually move on to something like web assembly.
That's not an opinion; this will actually happen. See this: https://kangax.github.io/compat-table/es6/
{div, a} = React.DOM
...
render: ->
(div {},
(a {href: 'foo'}, 'bar')
)
The only downside is having to extract the tags from React.DOM. MyComponent = React.createFactory require './my-component'
then you can do render: ->
(div {},
(MyComponent {})
)I haven't had any issues without the parens, but then again I've only just fooled around.
You probably know better.
edit: Someone else posted that https://github.com/jbhatab/middleman-backbone-react-template...
Everytime I see people saying bad things about coffeescript I really wonder why. This looks way nicer/clearer to me.
If there were something like CoffeeScript+JSX for LiveScript I would be sold.
Doesn't ES6 still require transpiling for maximum compatibility at this point? I would reverse your statement; aside from polyfills, ES6 offers me very little advantage over CS.