Alternatives to Redux
Redux vs React Context¶
- Dan Abramov: You might not need redux
- Redux actually uses React Context behind the scenes
- Redux should only store JSON serializable stuff
- Context can store anything like functions and react components
[[react-query]] for server state
Simpler alternatives to Redux for client state¶
- useState
- jotai
- globals
- zustand
- creates a store and actions
- machine
- subscribe to just
Last update:
2023-04-24