state-management-advisor
Installation
SKILL.md
State Management Advisor
Choose and implement the right state management solution for React applications.
Quick Start
Use local state by default, Context for simple global state, Zustand for complex client state, and TanStack Query for server state.
Instructions
Decision Tree
Start here:
- Is it server data (from API)? → Use TanStack Query
- Is it used in one component only? → Use useState
- Is it simple global state (theme, auth)? → Use Context
- Is it complex client state? → Use Zustand or Redux Toolkit