- Build boilerplate-free components using languages you already know — HTML, CSS and JavaScript -
+Build boilerplate-free components using languages you already know — HTML, CSS and JavaScript
- - discover how- Svelte compiles your code to tiny, framework-less vanilla JS — your app - starts fast and stays fast -
- - - wonder whySvelte compiles your code to tiny, framework-less vanilla JS — your app starts fast and stays fast
+ + learn more- No more complex state management libraries — Svelte brings reactivity to JavaScript itself -
+No more complex state management libraries — Svelte brings reactivity to JavaScript itself
- - experience how- Svelte is a radical new approach to building user interfaces. Whereas - traditional frameworks do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app. -
- -- Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes. -
- -- Read the introductory blog post - to learn more -
+Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app.
+ +Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.
+ +Read the introductory blog post to learn more.
-# quick install npx degit sveltejs/template my-svelte-project cd my-svelte-project @@ -144,12 +153,8 @@ npm install npm run dev & open http://localhost:5000-
- See the quickstart guide for more information. -
+See the quickstart guide for more information.
- +A taste of Svelte
Svelte components are built on top of HTML. Just add data.
Svelte components are built on top of HTML. Just add data.
Scoped styles
CSS is component-scoped by default — no more style collisions or specificity wars. Or you can use your favourite CSS-in-JS library.
CSS is component-scoped by default — no more style collisions or specificity wars. Or you can use your favourite CSS-in-JS library.
Intelligent compiler
Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.
Trigger efficient, granular updates by assigning to local variables. The compiler does the rest.
Build-in Transitions
Create beautiful UIs with a powerful, performant transition engine built right into the framework.
Build beautiful UIs with a powerful, performant transition engine built right into the framework.