3 ms·
Zustand is great: https://github.com/pmndrs/zustand https://github.com/pmndrs/zustand It gets out of the way in terms of boilerplate, has a good solution for a
by halotrope 4y ago
Zustand is great: https://github.com/pmndrs/zustand https://github.com/pmndrs/zustand
It gets out of the way in terms of boilerplate, has a good solution for avoiding unnecessary re-renders, has tooling for deep state updates without messy syntax (immer) and strikes an overall good balance between powerful and easy to use. Cons might be that it is a bit more obscure so people might have to learn it. Also the learning curve is a bit steep. YMMV
- jerrygoyal 4y agocheckout his newer library Valtio from the same author
- preya2k 4y agoZustand is great! It is tiny and flexible (it allows you to use Flux pattern – or not, depending on your preference). It's my go-to state management solution for new React projects.