zustand-patterns
Installation
SKILL.md
Zustand State Management Patterns
Basic Store
Simple Store
// stores/counter.ts
import { create } from 'zustand';
interface CounterState {
count: number;
increment: () => void;
decrement: () => void;
reset: () => void;
}