3 ms·
JSX exists because Javascript doesn't have macros. But Javascript has some popular code-generating transpilers for it, and those are where the community can inj
by kazinator 3y ago
JSX exists because Javascript doesn't have macros. But Javascript has some popular code-generating transpilers for it, and those are where the community can inject new syntax without having to have it EcmaScript and adopted by implementations of JS engines in browsers and elsewhere.
- colejohnson66 3y agoI'm surprised that TC39 hasn't adopted JSX into ECMAScript. It wouldn't need to be React, but just the syntax. It could even bypass React.createElement and "output" (execute as) document.createElement (with attribute properties and children) for you.