Svelte kompiliert Komponenten zu Vanilla-JS. Kein Virtual DOM, minimale Bundle-Groesse, intuitive Syntax.
Grundlegende Komponente¶
Clicked {count} times
SvelteKit¶
// src/routes/+page.server.ts – Server Load export async function load({ fetch }) { const posts = await fetch(‘/api/posts’).then(r => r.json()); return { posts }; } // src/routes/+page.svelte {#each data.posts as post} {post.title}
Wichtigste Erkenntnis¶
Svelte 5 Runes = einfachere Reaktivitaet. SvelteKit fuer Fullstack. Minimale Bundle-Groesse.