Y
Hacker News
new
|
ask
|
show
|
jobs
by
noahtallen
1685 days ago
Not just most of the time — all of the time! JSX is converted to plain JS (react.createElement) before it gets to the browser.
1 comments
tuukkah
1685 days ago
Isn't it actually the opposite? Svelte code is compiled to plain JS whereas React has a large runtime.
link
Aeolun
1684 days ago
Nah, JSX also gets converted to Javascript. The difference is in that the React runtime re-renders whole components every time something changes, and Svelte is more granular about it even during the compilation step.
link