I just hated React with passion and then I spent significant time with Svelte a few years basically to appreciate how much better React is.
Svelte had one edge - compiled code making surgical DOM updates. React has a compiler too and if you ever have opened Facebook or Instrgram, all that UI is compiled by a React compiler already.[0]
The real strength of React is that each component is a function which is an easier mental model than the spaghetti code Svelte componets turn into with special syntax which isn't even Javascript.
wg0 · · focus · HN ↗
Svelte had one edge - compiled code making surgical DOM updates. React has a compiler too and if you ever have opened Facebook or Instrgram, all that UI is compiled by a React compiler already.[0]
[0]. <a href="https://react.dev/learn/react-compiler" rel="nofollow">https://react.dev/learn/react-compiler
spider-mario · · focus · HN ↗
Is that supposed to be a selling point?
wg0 · · focus · HN ↗
spider-mario · · focus · HN ↗