pmndrs/zustand
π» Bear necessities for state management in React
What it is
A small, fast and scalable bearbones state-management solution using simplified flux principles. Has a comfy API based on hooks, isn't boilerplatey or opinionated. Don't disregard it because it's cute. It has quite the claws, lots of time was spent dealing with common pitfalls, like the dreaded zombie child problem, react concurrency, and context loss between mixed renderers. It may be the one state-manager in the React space that gets all of these right.
When to use it
Reach for zustand when you are choosing the foundation of a web app β framework, router, bundler or data layer β it's written in TypeScript and fits stacks tagged hooks, react, react-context, redux.