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:
Why you should learn Svelte
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 :star:
- Global state management built in :star:
- No Virtual DOM means faster renders due to avoiding not needed CPU cycles :star:
- Heavy lifting done at compile step means smaller bundles and faster code :star:
- Built in auto-scoped CSS in JS and animations :star:
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. :fire: