Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reasons for using svelte js [closed]

I found the Svelte framework these days. What do you think about using it instead of React.js or Vue.js?

I didn't use it at all so I don't understand the deep difference between them. I have read that Svelte much faster, but it doesn't have certain support for state storing like redux and so on. So what can you say about this? I tried to find some more info about the advantages and disadvantages but it was in vain.

like image 773
Alex Grigorenko Avatar asked Oct 31 '17 07:10

Alex Grigorenko


1 Answers

Svelte is a different take on the idea of building UIs. Rather than being a library that runs in the browser to create your UI, it's a compiler that turns your component into simple JavaScript, with no need for virtual DOM diffing or any of the other techniques that UI libraries use.

The resulting code is faster, but it's also smaller, more portable, and — crucially, especially on mobile — has lower memory requirements.

You absolutely can use Redux or any other state management system with Svelte. But it has built-in state management that's powerful enough that you probably won't need it.

like image 120
Rich Harris Avatar answered Sep 27 '22 18:09

Rich Harris