3 ms·
It is javascript. That is literally the difference between JSX and most other template languages. Look it up. The template syntax is converted to literally co
by wokwokwok 4y ago
It is javascript.
That is literally the difference between JSX and most other template languages. Look it up.
The template syntax is converted to literally code and evaluated. The <> are just syntax sugar. How did you imagine the inline code works? The in-line function declarations?
Did someone invent a mini-subset of JS as DSL and a custom runtime…? Don’t be ridiculous. They did not. JSX is literally a thin wrapper around actual code.
- uranusjr 4y agoTemplate language being translated to code is nothing new and certainly not unique to JSX even only when you consider frontend JavaScript frameworks. Vue has been doing that ever since single-file component was a thing. You need to look up things, please.