3 ms·
That's just reductio ad absurdum claim. JSX is one simple conversion while coffeescript or elm are entire turing-complete languages. It's like claiming a smile
by hajile 7y ago
That's just reductio ad absurdum claim.
JSX is one simple conversion while coffeescript or elm are entire turing-complete languages. It's like claiming a smiley face on the back of a receipt is no different from the Mona Lisa.
- hombre_fatal 7y agoYeah, all of the dynamic parts of JSX are Just Javascript. You can also look at JSX and know exactly how it will compile to Javascript because it's so simple. (foo && <Component {...props} />) -> (foo && React.createElement(Component, props)). It really is just React.createElement calls. It just isn't a huge departure. Meanwhile, what Elm compiles to is very nontrivial. The comparison only makes sense if you never actually looked at what JSX does thus mistake it for something much more complex. Try it out yourself: https://babeljs.io/repl https://babeljs.io/repl