What problem does it solve?
Streamlines the decision-making and implementation of state management in React applications by clarifying when to use local state, global stores, or server-side caching and by providing concrete, modern patterns to avoid over-globalization, redundant server copies, and migration pain from legacy Redux.
Core Features & Use Cases
- Pattern library for choosing between Redux Toolkit for large, complex apps, Zustand for lightweight client stores, Jotai for atomic updates, and React Query for server state and caching.
- Practical implementations including TypeScript-typed slices, persisted stores, selective subscriptions to avoid rerenders, optimistic updates with rollback, and migration guidance from legacy Redux to RTK.
- Use case: Build a Next.js admin dashboard that keeps auth and UI controls in a lightweight client store, caches users and metrics with React Query, and uses Redux Toolkit for complex transactional workflows requiring normalized state and middleware.
Quick Start
Use the react-state-management skill to recommend and scaffold a state architecture for a Next.js app that needs global authentication, client UI state, and cached server data with optimistic updates.