Re:Rich Harris joins Vercel to work on Svelte full time
by noahtallen on Friday November 12, 2021 @12:03AM
(#29196447)
Not just most of the time — all of the time! JSX is converted to plain JS (react.createElement) before it gets to the browser.
[ Parent
| on HN ]
Re:Rich Harris joins Vercel to work on Svelte full time
by tuukkah on Friday November 12, 2021 @01:08AM
(#29196733)
Isn't it actually the opposite? Svelte code is compiled to plain JS whereas React has a large runtime.
Re:Rich Harris joins Vercel to work on Svelte full time
by Aeolun on Friday November 12, 2021 @11:12PM
(#29207292)
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.