React to Svelte migration
Tired of useState, useEffect, useMemo and useCallback? I help teams move React and Next.js apps to SvelteKit, one piece at a time.
React vs Svelte
| React | Svelte |
|---|---|
useState, useEffect | $state, $effect |
useMemo, useCallback | $derived (automatic) |
Context + Provider | $state in module |
Virtual DOM diffing | Compiled, no VDOM |
CSS-in-JS or modules | Scoped CSS built-in |
Why migrate?
- Smaller bundles, because components compile to plain JavaScript instead of shipping a virtual DOM
- No dependency arrays, memoisation or rules of hooks to keep track of
- Animations and transitions built in
- Scoped CSS without extra tooling
- Server rendering, routing and data loading from SvelteKit
Thinking about switching?
Tell me about your React codebase and I'll suggest how a migration could work.