react-state-management
Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query.
Skill by leeno7786-coder
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/leeno7786-coder-react-state-management
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend, backend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md and code. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/react-state-management
What's inside
- Skill name
react-state-management- Description
- Master modern React state management with Redux Toolkit, Zustand, Jotai, and React Query. Use when setting up global state, managing server state, or choosing between state management solutions.
- License
- MIT
- Instructions
- 131 lines in SKILL.md · view on GitHub
Files (2)
- SKILL.md
- details.md · references/
SKILL.md (first lines)
# React State Management
Comprehensive guide to modern React state management patterns, from local component state to global stores and server state synchronization.
## When to Use This Skill
- Setting up global state management in a React app
- Choosing between Redux Toolkit, Zustand, or Jotai
- Managing server state with React Query or SWR
- Implementing optimistic updates
- Debugging state-related issues
- Migrating from legacy Redux to modern patterns
## Core Concepts
### 1. State Categories
| Type | Description | Solutions |
| ---------------- | ---------------------------- | ----------------------------- |
| **Local State** | Component-specific, UI state | useState, useReducer |
| **Global State** | Shared across components | Redux Toolkit, Zustand, Jotai |
| **Server State** | Remote data, caching | React Query, SWR, RTK Query |
| **URL State** | Route parameters, search | React Router, nuqs |
| **Form State** | Input values, validation | React Hook Form, Formik |
### 2. Selection Criteria
```
Small app, simple state → Zustand or Jotai
Large app, complex state → Redux Toolkit
Heavy server interaction → React Query + light client state
Atomic/granular updates → Jotai
```
## Quick Start
### Zustand (Simplest)
```typescript
// store/useStore.ts
import { create } from 'zustand'
import { devtools, persist } from 'zustand/middleware'
interface AppState {
user: User | null
theme: 'light' | 'dark'
setUser: (user: User | null) => void
toggleTheme: () => void
}
export const useStore = create<AppState>()(
devtools(
persist(
(set) => ({
user: null,
theme: 'light',
setUser: (user) => set({ user }),
toggleTheme: () => set((state) => ({
theme: state.theme === 'light' ? 'dark' : 'light'
})),
}),
{ name: 'app-storage' }
)
)
)
// Usage in component
function Header() {
const { user, theme, toggleTheme } = useStore()
return (
<header className={theme}>
{user?.name}
<button onClick={toggleTheme}>Toggle Theme</button>
</header>
)
}
```
## Detailed patterns and worked examples
Detailed pattern documentation lives in `references/details.md`. Read that file when the navigation tier above is insufficient.
## Best Practices
### Do's
- **Colocate state** - Keep state as close to where it's used as possible
- **Use selectors** - Prevent unnecessary re-renders with selective subscriptions
- **Normalize data** - Flatten nested structures for easier updates
- **Type everything** - Full TypeScript coverage prevents runtime errors
- **Separate concerns** - Server state (React Query) vs client state (Zustand)
### Don'ts
- **Don't over-globalize** - Not everything needs to be in global state
- **Don't duplicate server state** - Let React Query manage it
- **Don't mutate directly** - Always use immutable updates
- **Don't store derived data** - Compute it instead
- **Don't mix paradigms** - Pick one primary solution per category
## Migration Guides
### From Legacy Redux to RTK
```typescript
// Before (legacy Redux)
const ADD_TODO = "ADD_TODO";
const addTodo = (text) => ({ type: ADD_TODO, payload: text });
function todosReducer(state = [], action) {
switch (action.type) {
case ADD_TODO:
return [...state, { text: action.payload, completed: false }];
default:
return state;
}
}
// After (Redux Toolkit)
const todosSlice = createSlice({From leeno7786-coder/nanoagent, MIT.
More from leeno7786-coder/nanoagent
- 0.614score
github-actions-docs
leeno7786-coder
Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
nextjs-app-router-patterns
leeno7786-coder
Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching.
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
skill-creator
leeno7786-coder
Create new skills, modify and improve existing skills, and measure skill performance.
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
mcp-builder
leeno7786-coder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
brand-guidelines
leeno7786-coder
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
pdf
leeno7786-coder
Use this skill whenever the user wants to do anything with PDF files.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
doc-coauthoring
leeno7786-coder
Guide users through a structured workflow for co-authoring documentation.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
algorithmic-art
leeno7786-coder
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
canvas-design
leeno7786-coder
Create beautiful visual art in .png and .pdf documents using design philosophy.
SkillAFreshness: A★ 4Claude Code +9
Signals
- Stars
- 4
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 19, 2026 (4 months ago)
- Last release
- Oct 8, 2026 (20 days ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/leeno7786-coder/nanoagent
- Website
- bunban.vercel.app
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
More from leeno7786-coder
- 0.614score
github-actions-docs
leeno7786-coder
Use when users ask how to write, explain, customize, migrate, secure, or troubleshoot GitHub Actions workflows, workflow syntax, triggers, matrices, runners…
SkillAFreshness: A★ 4Claude Code +9 - 0.614score
nextjs-app-router-patterns
leeno7786-coder
Master Next.js 14+ App Router with Server Components, streaming, parallel routes, and advanced data fetching.
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
skill-creator
leeno7786-coder
Create new skills, modify and improve existing skills, and measure skill performance.
SkillAFreshness: A★ 4Claude Code +9 - 0.589score
mcp-builder
leeno7786-coder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
brand-guidelines
leeno7786-coder
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel.
SkillAFreshness: A★ 4Claude Code +9 - 0.584score
pdf
leeno7786-coder
Use this skill whenever the user wants to do anything with PDF files.
SkillAFreshness: A★ 4Claude Code +9
Cite this page
react-state-management skill. Agent Mart. https://agentmart.dev/skills/leeno7786-coder-react-state-management (last updated 2026-10-24)