Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
A direct command skips the review prompt. Inspect the source before running it.
Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.
license
MIT
metadata
{"author":"Microsoft","version":"1.0.0"}
Zustand Store
Create Zustand stores following established patterns with proper TypeScript types and middleware.
// Good - only re-renders when `items` changesconst items = useMyStore((state) => state.items);
// Avoid - re-renders on any state changeconst { items, isLoading } = useMyStore();