Need advice about which tool to choose?Ask the StackShare community!
Redux vs reselect: What are the differences?
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; reselect: Selector library for Redux. Simple “selector” library for Redux (and others) inspired by getters in NuclearJS, subscriptions in re-frame and this proposal from speedskater.
Redux and reselect belong to "State Management Library" category of the tech stack.
Redux and reselect are both open source tools. It seems that Redux with 49.2K GitHub stars and 12.7K forks on GitHub has more adoption than reselect with 14.9K GitHub stars and 522 GitHub forks.
Instagram, Intuit, and Code School are some of the popular companies that use Redux, whereas reselect is used by BlaBlaCar, LendingHome, and Captiv8. Redux has a broader approval, being mentioned in 1021 company stacks & 804 developers stacks; compared to reselect, which is listed in 7 company stacks and 6 developer stacks.
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 reselect
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