3 ms·
Fwiw I think "compiled to" is a bit of a misnomer. From my understanding it's more like a DSL that gets interpreted by the renderer.
by foota 9y ago
Fwiw I think "compiled to" is a bit of a misnomer. From my understanding it's more like a DSL that gets interpreted by the renderer.
- ng12 9y agoI think compilation is fair wording -- JSX is just sugar around the createElement API. : https://facebook.github.io/react/docs/react-api.html#createelement https://facebook.github.io/react/docs/react-api.html#createe...
- foota 9y agoA bit late, but my thought is that compiled to js/Dom api to me implies that it's compiled directly to document.createElement and friends.