News for hackers. Stuff that matters.
Re:Comparing Svelte and React by steinuil on Thursday March 25, 2021 @06:15AM (#26578339)
I should also explain what I mean by "thin syntactic sugar": JSX is a local transformation which doesn't need any external context to be translated to plain JS. `<div className="greeting">Hello</div>` will always compile to `React.createElement('div', { greeting: "hello" }, "Hello")` no matter what; in Svelte, `count += 1` will output different code based on its context because it will compile the whole component as a single unit.

There are no comments on this comment yet.