zustand
Installation
SKILL.md
Zustand State Management
Lightweight, flexible state management for React.
When NOT to Use
- Server state → Use TanStack Query
- Form state → Use React Hook Form
- URL state → Use router params
Instructions
1. Basic Store
// store/useAuthStore.ts
import { create } from 'zustand';