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]
I also find arguments like this quite weak. YouTube, Facebook et al work like absolute horseshit compared to other websites and web apps. If anything, they proof that these big companies manage to make simple web applications as bloated and slow as possible.
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?
herrherrmann · · focus · HN ↗
wg0 · · focus · HN ↗
spider-mario · · focus · HN ↗