What problem does it solve?
This Skill guides developers in implementing Zustand state management for React applications, providing a clear store structure, action patterns, and slices to reduce boilerplate and improve maintainability.
Core Features & Use Cases
- Store design and slicing: organize state with modular Zustand stores and typed actions for predictable updates.
- Action patterns and lifecycle: distinguish public actions, internal actions, and dispatchers to separate concerns and enable scalable state flows.
- Optimized performance and testability: use selectors and flat state to simplify testing and component reusability.
Quick Start
Install Zustand in your project (e.g., npm install zustand). Create a basic store with actions and selectors, then connect components to read and update state. Organize the store into slices (topics, messages) and adopt the public/internal/dispatch naming style.