TL;DR - unlike established component-based frameworks such as React, Angular, or Vue, with Svelte you can take building user interfaces to the next level. Many devs are interested in learning about building with Svelte and we’d love to help you kick start! Here is a hand-picked list of some valuable resources to assist you to get started with Svelte.
Why Svelte?
There's a good reason why Svelte is gaining popularity among frontend developers lately. I made a brief of the major advantages that are agreed by many developers who tried building with Svelte and lived to tell their story.
What’s the benefit?
- Instead of doing most of the work in the browser, Svelte does its work when you build the app and it compiles it to efficient vanilla JavaScript.
- Reduces the overhead of the JavaScript framework you’re using. By compiling Svelte to vanilla JavaScript improves the code readability, enables re-use and it produces a much faster web app.
- Svelte does not require declarative, state-driven code, which the browser has to convert into DOM operations. That means you don’t need to use virtual DOM anymore.
What’s the downside?
- IDE support is not yet comparable to the commonly-used frameworks. It still has a lot of room for improvement. Although there are some good resources online to solve some of the issues, it can be considered as a major disadvantage as of today.
- Not many Svelte dev tools exist at the moment. It is still a young and growing ecosystem. Keep that in mind. However, that’s a great opportunity to develop some for the Svelte community.
- Small open-source ecosystem. Like many other frameworks, it takes time to build a large community around a specific framework. Although Svelte has gone a pretty decent way already, there are still not enough open-source contributors. Same here, you can look at it as an opportunity as well.
Want to read more about the pros and cons of building with Svelte?
- CTO’s guide to Svelte – what can the rising frontend framework do for you?
- Same but different: Introduction to Svelte
- Svelte: comparison with other frameworks
- A quick example that emphasis the pros and cons of Svelte
Resources to get you started
Svelte ecosystem 101 👋🏼
- Svelte’s Homepage
- The official Selvte community
- Svelte GitHub repository
- Svelte Discord server
- Svelte sub-reddit
Tutorials 🤓
We don’t want to overwhelm you with tutorials. There are tons of tutorials out there and we picked only the ones that are both practical, comprehensive and user-friendly:
- The official tutorial by Svelte developers.
- Building My First Svelte App: Thoughts and Impressions by Chris on Code
Use Cases and Demos 🚀
Like anything, inspiration is important when starting with something new. Check out some cool projects that are using Svelte. Some of them are in production and some are demo apps:
- OmniaWrite - A text editor engineered for creative writing. Also on GitHub
- TypeRunner.js - A simple typing game, which has 2-4 human players compete against each other. The one to first type out the entire block of text wins.
- Hacker News clone built with Svelte. Also on GitHub.
- Nomie - Mood and Life Tracker built with Svelte. Also on GitHub.
- Cool showcase of many other apps made with Svelte
Useful code repositories 💻
- svelte-grid - A responsive, draggable and resizable grid layout, for Svelte
- Vime - Focused on making embedding and using media elements for the web simple
- svelte-mui - A set of Svelte UI components inspired by Google's Material Design
- svelte-component-template - A base for building shareable Svelte 3 components
- svelte-loader - Webpack loader for Svelte components
- svelte-routing - A declarative Svelte routing library with SSR support
- svelte-inetllij - Provides syntax highlighting of Svelte components in WebStorm and friends
- @testing-library/svelte - Simple and complete DOM testing utilities that encourage good practices
- svelte-apollo - Svelte integration for Apollo GraphQL
- Search repos more here
- Explore some basic code examples
Developer Tools 🔧
As we said… not many field-tested developer tools available at the moment. However, this one is quite useful: Svelte DevTools browser extension for Chrome and Firefox
Stay updated about Svelte news 🏄🏻
- The official Svelte blog
- Why Svelte - a news aggregator built especially for Svelte news
- daily.dev - Never miss an update about Svelte. Let daily.dev collect and rank the latest tech news for you every new tab
- Svelte newsletter - get the latest Svelte news to your inbox bi-weekly