Part 1 of a series on Svelte in 2026: the compiler, runes, SvelteKit, and an honest comparison with React.
Here is a whole Svelte component.
<script lang="ts"> let count = $state(0); let doubled = $derived(count * 2);</script>
<button onclick={() => count++}> clicked {count} times (doubled: {doubled})</button>There’s no hook in there and no dependency array, and nobody calls a setter. You change a variable and the page follows.
That’s the whole pitch, and it sounds too simple to survive a real app. I’ve wondered about that for a while, so this series is me checking.
Svelte is a compiler, not a runtime library
The docs call Svelte “a framework for building user interfaces on the web” that “uses a compiler to turn declarative components written in HTML, CSS and JavaScript” into optimized JavaScript.1
The important word is compiler. React ships a library that runs your component function again on every update and diffs what comes out. Svelte does most of that thinking at build time. The counter above runs once. When count changes, the only thing that updates is the text inside the button. There’s no re-render and no virtual DOM diff.
What being a compiler buys you, in code and in kilobytes, is the whole of part 2. For now, hold on to the shape: you write plain-looking code, and the compiler wires up the updates.
Three reasons it’s worth a look
You write less code for the same thing
A $state value is just a variable you mutate, so count++ is the whole update. There’s no setter to remember and no stale closure to debug.
A $derived value says what something is, not when to recompute it. The doubled count is always the count times two, and you never list its dependencies, because Svelte tracks what it read.
Here’s the same counter with a step prop, written the Svelte 4 way and then with runes. Both compile with Svelte 5.57.2; the first one runs in legacy mode.
It’s the same length. What changed is that every reactive thing now says so. The click handler lost its colon too, because in Svelte 5 “event handlers are now just props like any other.”2
You can see what’s reactive
Svelte 4 had no runes. The compiler guessed what was reactive from how you wrote things: a top-level let was state, and a $: line was a derived value. It felt like magic, and the magic had sharp edges.
The runes announcement names them. The let trick “only works for let declarations at the top level of a component,” so the moment you moved logic into a function or another file, it stopped being reactive. And a $: statement only tracked the variables written inside it. Call a helper that reads other values, and the compiler can’t see them.3
That’s the worst kind of bug: a refactor that looks harmless and quietly stops the page from updating.
Runes fix it by being explicit. They track dependencies at runtime, so it doesn’t matter where the read happens. The runes post is clear that signals power this, but “in Svelte 5, signals are an under-the-hood implementation detail rather than something you interact with directly.”3 You get the precision of signals without writing .value everywhere.
There isn’t much to learn
The runes nav in the docs has seven entries: $state, $derived, $effect, $props, $bindable, $inspect and $host.4 Most components use two or three of them.
Svelte 5 also removed whole concepts instead of adding them. Slots became snippets. Event handlers became props. Outside a component, runes work in .svelte.js and .svelte.ts files, so shared state is the same $state you already know.3 There’s less to learn, and what there is stays consistent.
Where Svelte stands in 2026
Svelte 5 shipped in October 2024 and is two years old.2 It was “almost completely backwards-compatible with Svelte 4,” with a migration script, npx sv migrate svelte-5. SvelteKit 3, the app framework on top, shipped on October 1, 2026.5 Remote functions, which a later part covers, are still experimental in SvelteKit 3. The team calls them their “top priority,” but they aren’t stable yet.
The State of JS 2025 survey tells the rest.6 I pulled the raw numbers from its public API and left out the people who answered neutral.
- 27.5% of respondents use Svelte. That’s flat to slightly up from 25.8% in 2023.
- 87% of Svelte users felt positive about it. Only Solid, at 90%, scored higher. React was at 72%.
- 63% of people who had heard of Svelte but not used it felt positive about it. That’s the highest of any front-end framework in the survey. Solid was next at 56%, and React was at 27%.
So people who use Svelte like it, and people who haven’t tried it want to. And still only about a quarter of developers use it.
React is used by 85% of the same respondents. That number is the honest case for React: a bigger ecosystem and a much bigger hiring pool. Those are real reasons, and this series won’t pretend otherwise.
When Svelte isn’t the answer
- You have a big React codebase that works. Rewriting a working app to change frameworks is rarely worth it.
- You ship mobile with React Native. A lot of the appeal there is sharing components and know-how with the web app, and I’d think hard before giving that up.
- Your team hires for React. Look at the usage numbers above. The hiring pool isn’t close.
None of that makes Svelte a bad pick. This part is only the case for looking at it, and the verdict waits for the end of the series.
I’ve already looked, for what it’s worth. The app on my Mac mini server is a SvelteKit app.
What the rest of the series covers
Each part takes one idea, shows a small working example, compares it with React, and lists the gotchas. All 22 parts come out this week, three or four a day, so you can read straight through.
It starts with the language. Part 2 is what being a compiler buys you. Then a part each on state, derived values and effects (including when not to reach for an effect), followed by props, snippets, shared state in .svelte.ts modules, the docs’ best practices, transitions, and scoped styles.
Then SvelteKit: routes and layouts, form actions, remote functions, what’s new in SvelteKit 3 and how to migrate to it, testing, and observability.
The last stretch zooms out: Svelte vs React with one component written both ways, a component library, Tailwind v4, AI coding tools, and the verdict, should you pick Svelte in 2027?
If you want to read ahead, start with the runes announcement and the Svelte 5 launch post. Adam Rackis’s introduction to Svelte 5 is good too, though it was written during the beta.7
Next: Svelte is a compiler, and what that buys you.
- Part 2 — What Svelte's compiler actually saves you: the compiled counter, line by line, and where the bundle-size gap comes from
Footnotes
-
Svelte 5 is alive (October 2024).
svelte@5.0.0was published to npm on 2024-10-19. ↩ ↩2 -
Introducing runes (September 2023). ↩ ↩2 ↩3
-
Svelte docs, What are runes?. ↩
-
SvelteKit 3 is here (October 2026). The migration guide is Migrating to SvelteKit 3. ↩
-
State of JS 2025: Front-end frameworks. The page shows charts; I computed the percentages from the Devographics API as positive ÷ (positive + negative), so they may differ slightly from the site’s own ratio charts. Usage is 3,322 of 12,065 who answered the question. ↩
-
Adam Rackis, Introducing Svelte 5 (July 2024). ↩

