DEV Community

Cover image for Why you should try Svelte!

Why you should try Svelte!

Marc on April 28, 2020

Intro to Svelte I recently came across Svelte again when I watched the stateofjs 2019. They received the "Prediction Award" which means ...
Collapse
 
gyurisc profile image
gyurisc

Nice article. I really wanted to know a bit more about Svelte since it is coming up on my radar more and more. I am new to the frontend world and currently learning React. It would be nice to know why one would choose Svelte over React. It seems that they both solving the same problems.

Are there any particular strengths of this framework over React?

Collapse
 
marcradziwill profile image
Marc

Thank you gyurisc :)
So welcome to the frontend world :D you will love it ;)
You really should try Svelte if you have some spare time.
As I'm doing much web performance stuff, I like the fact to ship my application without the framework code to production. Svelte shifts the work into the compiler. For React, in particular, you need the framework code in your production app. Reacts production code is not an overhead, because they help you with a lot of things you would have to implement yourself, but it is still code that has to run.

I would love to have an overview or blog post about a comparison on just the technical facts. But your right, they try to solve similar problems. You can add VueJs and some others.
Moreover, Rich Harris deceived us all by making us think of Svelte as a UI framework ;). Maybe with Svelte you learning a new language instead of a frontend framework :)

Collapse
 
gyurisc profile image
gyurisc

Thanks for the great answer and the article! I will read it :)

Thread Thread
 
mikenikles profile image
Mike

Marc, this is a well written article with plenty of details.

gyurisc, I wrote a similar post from a perspective of why I went from React to Svelte if you're curious: mikenikles.com/blog/why-i-moved-fr...

Thread Thread
 
marcradziwill profile image
Marc

Hey Mike, thanks so much.
I read your article as well. Nice comparison!

Thread Thread
 
gyurisc profile image
gyurisc

Really great article! I am starting to like this... Will make an example in Svelte to try it out. Thanks!

Collapse
 
sjellen profile image
SJellen • Edited

FYI..
Just got an email this morning saying that Scrimba has a free course on Svelte that launched today.

scrimba.com/course/glearnsvelte

Collapse
 
gyurisc profile image
gyurisc

I was just about to ask where the link is but then I realized that I can google it myself too :)

Scrimba Svelte training

Collapse
 
yurikaradzhov profile image
Yuri Karadzhov

Nice article! You can quick start with svelte by using hqjs.org

Collapse
 
jonrandy profile image
Jon Randy πŸŽ–οΈ

It's very much like the excellent RiotJS that predates it by a number of years

Collapse
 
marcradziwill profile image
Marc

Hey Jo, thanks for that hint. I've to admit that RiotJS and I haven't met in detail. I will put it on my coding bucket list!