Zustand
ELI5 — The Vibe Check
Zustand is German for 'state' and it's the state management library that makes Redux look like doing your taxes. Create a store in like 5 lines, use it anywhere with a hook. No reducers, no actions, no boilerplate therapy sessions needed.
Real Talk
Zustand is a lightweight state management library for React that uses a simplified flux pattern. It provides a hook-based API with no providers needed, supports middleware for persistence and devtools, and handles state updates with immutable patterns.
Show Me The Code
const useStore = create((set) => ({
count: 0,
increment: () => set((s) => ({ count: s.count + 1 }))
}));
When You'll Hear This
"We replaced 200 lines of Redux with 15 lines of Zustand" / "Zustand's API is so simple it almost feels like cheating"
Related Terms
Jotai
Jotai treats state like individual atoms that you can combine like molecular chemistry.
Redux Toolkit
Redux Toolkit is Redux's apology letter.
Signals
Signals are reactive primitives that hold a value and automatically notify the UI when that value changes — with surgical precision.