React’s JSX: The Other Side of the Coin
medium.com
React’s JSX: The Other Side of the Coin
1–4 of 4 posts
Re: React’s JSX: The Other Side of the Coin
#2The irritation is about what we may expect to be another quoting level (e.g., back-ticks) is implemented as plain code. By doing so, the language specs are dramatically inflated by the addition of HTML grammar. We may note in this context that in JS the DOM-interface is _not_ part of the core language, but kept a separate implementation.
Re: React’s JSX: The Other Side of the Coin
#3Not sure about this. The irritation is about what we may expect to be another quoting level (e.g., back-ticks) is implemented as plain code. By doing so, the language specs are dramatically inflated by the addition of HTML grammar. We may note in this context that in JS the DOM-interface is _not_ part of the core language, but kept a separate implementation.
The language specs are unaffected. JSX is simply compiled down to JavaScript.
Re: React’s JSX: The Other Side of the Coin
#4Not sure about this. The irritation is about what we may expect to be another quoting level (e.g., back-ticks) is implemented as plain code. By doing so, the language specs are dramatically inflated by the addition of HTML grammar. We may note in this context that in JS the DOM-interface is _not_ part of the core language, but kept a separate implementation.
"It's NOT a proposal to incorporate JSX into the ECMAScript spec itself. It's intended to be used by various preprocessors (transpilers) to transform these tokens into standard ECMAScript."
Anyway, I really like this article. It pains me every time I have to deal with angular templating.