zustand
Installation
SKILL.md
Zustand
Lightweight state management for React. No providers, no boilerplate. Stores are hooks.
Quick start
import { create } from "zustand"
interface BearState {
bears: number
increase: (by: number) => void
}
const useBearStore = create<BearState>()((set) => ({
bears: 0,
increase: (by) => set((state) => ({ bears: state.bears + by })),
}))
Related skills
More from fellipeutaka/leon
docker
|
85commit-work
Create high-quality git commits: review/stage intended changes, split into logical commits, and write clear commit messages (including Conventional Commits). Use when the user asks to commit, craft a commit message, stage changes, or split work into multiple commits.
45clean-code
|
40solid
|
33design-patterns
|
33ai-repo-setup
|
31