
A practical guide for managing client-side state with Zustand that emphasizes domain-specific stores, TypeScript type safety, and performance through selector hooks. You'll get a recommended middleware stack (devtools, persist, immer), templated store structures with actions grouped together, and patterns for avoiding common pitfalls like over-subscribing to store updates. The philosophy is clear: use this for shared UI state, not server state, and keep things simple rather than over-engineered. Includes a validation checklist and specific guidance on persisting only what you need using partialize. If you're reaching for Redux but want something lighter, or using Context and dealing with unnecessary re-renders, this walks through the Zustand approach.
npx -y skills add pedronauck/skills --skill zustand --agent claude-codeInstalls into .claude/skills of the current project.
Select a file.