Looking at Svelte it really looks promising and I can see why many people will learn it and use it in the future.
I just see a lot of issues that are quirky to deal with in React, like data fetching in components, are solved more elegantly in Svelte 😎.
If you want to learn about all the things you need to handle when doing data fetching in React take a look at:
Now comparing the React way of doing it to Svelte - I think the Svelte approach is much nicer:
You should learn Svelte not because it's the new cool kid around the block, but because it adds new paradigm shifts to frontend development, that can certainly help you:
- Less boilerplate code due to handling state and reactivity in an easy way ⭐
- Global state management built in ⭐
- No Virtual DOM means faster renders due to avoiding not needed CPU cycles ⭐
- Heavy lifting done at compile step means smaller bundles and faster code ⭐
- Built in auto-scoped CSS in JS and animations ⭐
So it has 5 stars from me, what do you think?
If you like this article, chances are you will also enjoy what I post on Twitter. 🔥