After spending over 7 years architecting and deploying scalable web applications, the majority of my frontend career has been deeply intertwined with the React ecosystem. From building complex dashboards at Neopot to managing high-traffic e-commerce experiences for Dausto, React and Next.js have been my trusty hammers for almost every architectural nail.
But when it came time to rebuild my personal portfolio and resume viewer, I decided to leave my comfort zone. I chose SvelteKit.
Here is why I made the switch, and what I learned along the way.
1. The Disappearing Framework
React’s Virtual DOM was a revolutionary concept a decade ago. It abstracted away the complexities of direct DOM manipulation. However, as applications scale, managing renders, memoization (useMemo, useCallback), and dependency arrays often becomes a significant chunk of the development mental overhead.
Svelte takes a fundamentally different approach. It acts as a compiler. Instead of shipping a heavy framework runtime to the client that diffs a virtual DOM against the real one, Svelte compiles your components into highly optimized, imperative vanilla JavaScript that surgically updates the DOM only when the state actually changes.
The result? My portfolio feels astonishingly fast, and the client-side bundle size is incredibly small.
2. Developer Experience (DX) and Boilerplate
Let’s look at state management. In React, a simple counter requires importing a hook, destructuring an array, and calling a setter function:
import { useState } from 'react';
export default function Counter() {
const [count, setCount] = useState(0);
return (
<button onClick={() => setCount(count + 1)}>
Clicked {count} times
</button>
);
}In Svelte, reactivity is built directly into the language via standard variable assignments:
<script>
let count = $state(0);
</script>
<button on:click={() => count += 1}>
Clicked {count} times
</button>This reduction in boilerplate isn’t just about typing fewer characters. It significantly reduces the cognitive load when reading complex component files. Everything feels closer to the core platform (HTML, CSS, JS).
3. Scoped Styling Out of the Box
As someone who frequently works with Tailwind CSS, I love utility-first styling. But occasionally, you just need to write custom CSS for complex animations or highly specific graphical layouts (like the circuit-board background in my portfolio’s hero section!).
In Svelte, every <style> block is scoped to the component by default. No need for CSS Modules, styled-components, or worrying about global class name collisions.
<style>
/* This only targets p tags inside this specific component! */
p {
color: var(--primary);
}
</style>4. Built-in Markdown Support with MDSveX
Knowing I wanted to start technical writing, I needed a robust way to handle Markdown. While Next.js has great tools like next-mdx-remote, SvelteKit’s integration with Mdsvex was an absolute breeze.
I was able to configure it in svelte.config.js in a few lines of code, and suddenly all my .md files were valid Svelte components. I can import interactive Svelte components directly into my markdown blog posts without any complex parsing logic.
The Verdict
While Next.js remains an absolute powerhouse for large-scale, enterprise applications with massive dev teams, SvelteKit brings a breath of fresh air to individual projects, startups, and performance-critical UIs.
Rebuilding my portfolio with SvelteKit was a reminder of why I fell in love with web development in the first place: it put the focus entirely back on the HTML, CSS, and logic, rather than fighting the framework.
If you are a React developer looking for a weekend project, I highly invite you to give SvelteKit a try!