Need advice about which tool to choose?Ask the StackShare community!
Redux vs Svelte: What are the differences?
What is Redux? Predictable state container for JavaScript apps. Redux helps you write applications that behave consistently, run in different environments (client, server, and native), and are easy to test. On top of that, it provides a great developer experience, such as live code editing combined with a time traveling debugger.
What is Svelte? A UI framework that compiles into tiny standalone JavaScript modules. If you've ever built a JavaScript application, the chances are you've encountered – or at least heard of – frameworks like React, Angular, Vue and Ractive. Like Svelte, these tools all share a goal of making it easy to build slick interactive user interfaces. Rather than interpreting your application code at run time, your app is converted into ideal JavaScript at build time. That means you don't pay the performance cost of the framework's abstractions, or incur a penalty when your app first loads.
Redux belongs to "State Management Library" category of the tech stack, while Svelte can be primarily classified under "Javascript UI Libraries".
"State is predictable" is the top reason why over 175 developers like Redux, while over 3 developers mention "All in one" as the leading cause for choosing Svelte.
Redux and Svelte are both open source tools. It seems that Redux with 49.5K GitHub stars and 12.8K forks on GitHub has more adoption than Svelte with 20.6K GitHub stars and 769 GitHub forks.
Svelte is everything a developer could ever want for flexible, scalable frontend development. I feel like React has reached a maturity level where there needs to be new syntactic sugar added (I'm looking at you, hooks!). I love how Svelte sets out to rebuild a new language to write interfaces in from the ground up.
Svelte 3 is exacly what I'm looking for that Vue is not made for.
It has a iterable dom just like angular but very low overhead.
This is going to be used with the application.
for old/ lite devices . ie. * android tv, * micro linux, * possibly text based web browser for ascci and/or linux framebuffer * android go devices * android One devices
Pros of Redux
- State is predictable190
- Plays well with React and others149
- State stored in a single object tree125
- Hot reloading out of the box78
- Allows for time travel72
- You can log everything14
- Great tutorial direct from the creator11
- Test without browser6
- Endorsed by the creator of Flux6
- Easy to debug5
- Enforces one-way data flow2
- Granular updates2
- Blabla1
Pros of Svelte
- Performance51
- Reactivity37
- Javascript compiler (do that browsers don't have to)33
- Components33
- Simplicity32
- Lightweight30
- Fast as vanilajs26
- Near to no learning curve26
- Real Reactivity26
- All in one20
- Compiler based18
- Use existing js libraries17
- Scalable16
- SSR15
- Very easy for beginners14
- Composable13
- No runtime overhead12
- Ease of use12
- Built in store10
- Typescript9
- Best Developer Experience7
- Start with pure html + css7
- Templates6
- Speed4
Sign up to add or upvote prosMake informed product decisions
Cons of Redux
- Lots of boilerplate11
- Verbose6
- Design5
- Steeper learning curve than RxJs4
- Steeper learning curve than MobX4
- Steep learning curve4
Cons of Svelte
- Event Listener Overload3
- Little to no libraries2
- Complex2
- Learning Curve2
- Hard to learn2