Origins of JSX and Why It Exists
dodov.dev
dodov.dev
Seems strange to focus on E4X when discussing the origins vs the actual origin.
Just because E4X is somewhat similar doesn't make it the origin.
It still doesn’t go over why the greater than and less than signs somehow still transform into a syntactically valid JS especially when none of the jsx is in quotes.
It doesn't have to be in quotes because the tool, like Babel, has tokenization and parsing rules for it which disambiguate it somehow. It basically is a kind of quote. Or, well quasiquote. Just like " introduces a textual quote, a token sequence like <div> introduces a HTML quasiquote.
You can transform a language into JS that doesn't look like JS in any regard. So of course you can transform one that looks like JS, but does weird things that would be syntax errors in JS.