‹ BackHN Continuity

Thread

SvelteKit 3

408 points · 179 comments · sampsn

  1. wg0 · · focus · HN ↗
    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]

    [0]. <a href="https:&#x2F;&#x2F;react.dev&#x2F;learn&#x2F;react-compiler" rel="nofollow">https:&#x2F;&#x2F;react.dev&#x2F;learn&#x2F;react-compiler

    1. spider-mario · · focus · HN ↗
      &gt; if you ever have opened Facebook or Instrgram, all that UI is compiled by a React compiler already.

      Is that supposed to be a selling point?

      1. wg0 · · focus · HN ↗
        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&#x27;t even Javascript.
        1. spider-mario · · focus · HN ↗
          Right, it’s HTML. It’s a bit like JSX but not embedded.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.