4 ms·
It's literally as complex as transpiling ES6 to ES5. And although JSX is not in the ECMA-262 spec, it does have a spec, so there's that.
by kentor 10y ago
It's literally as complex as transpiling ES6 to ES5.
And although JSX is not in the ECMA-262 spec, it does have a spec, so there's that.
- Touche 10y agoTranspiling is complexity. You don't have to transpile if you just use web technologies (JavaScript, HTML, CSS).
- kentor 10y agoOf course it is, but saying it's "a ton of complexity" to use JSX, while not saying the same for transpiling current and future ECMA-262 syntax into what browsers support right now is disingenuous.
- Touche 10y agoNo it's not, transpiling future ECMA-262 is not within the scope of this discussion. We are compared browser-native language features JS (non transpiled), HTML, CSS, to non-native features, namely JSX.