TECHNOLOGY INDEX / REFERENCEREACT / APPLICATION STATESTATE MANAGEMENT
REFERENCE / ZUSTAND
Zustand
Zustand is a small state-management library for React and vanilla JavaScript built around stores, actions and selector-based subscriptions.
ONE STORE.
FOCUSED UPDATES.
It keeps application state outside individual components while allowing each consumer to subscribe only to the values it needs.
THE CORE
IDEAS.
- 01
STORE
Create state and its actions together in one reusable application boundary.
- 02
SELECTORS
Subscribe a component to a focused slice instead of every value in the store.
- 03
MIDDLEWARE
Add persistence, development tools or alternate update styles when a project needs them.
KEEP EXPLORING / 03OFFICIAL