Y
Hacker News
new
|
ask
|
show
|
jobs
by
foota
3294 days 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.
1 comments
ng12
3294 days ago
I think compilation is fair wording -- JSX is just sugar around the createElement API. :
https://facebook.github.io/react/docs/react-api.html#createe...
link
foota
3290 days ago
A 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.
link