zustand-v5-typed-store-creation
Installation
SKILL.md
Zustand v5 Typed Store Creation
Critical v5 Breaking Changes
Zustand v5 introduced significant API changes from v4. You MUST use v5 syntax:
v5 Curried Function Syntax (MANDATORY)
import { create } from 'zustand';
interface BearStore {
bears: number;
increase: (by: number) => void;
}