Zustand
Small, unopinionated React state-management library using hook-based external stores with selector subscriptions, middleware, and zero context providers.
ID: tech:zustand | Kind: library | Latest: v5.1.0 | License: MIT | Verified: 2026-12-01
When to use
- Multiple distant React components share transient client UI state (drawers, selection sets, editors) that does not belong in the URL or server cache.
- You want selector-based subscriptions without wrapping your application tree in React Context providers.
When to avoid
- You are caching remote HTTP/API responses, where TanStack Query handles retries, invalidation, and stale-while-revalidate automatically.
- Your state belongs in URL query params (filters, search, compare IDs) so refresh and link sharing preserve state.