Agent skill

react-state-management

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.

Stars 163
Forks 31

Install this agent skill to your Project

npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/react-state-management-spencergeee-spentrade

SKILL.md

React State Management

Comprehensive guide to modern React state management patterns, from local component state to global stores and server state synchronization.

Do not use this skill when

  • The task is unrelated to react state management
  • You need a different domain or tool outside this scope

Instructions

  • Clarify goals, constraints, and required inputs.
  • Apply relevant best practices and validate outcomes.
  • Provide actionable steps and verification.
  • If detailed examples are required, open resources/implementation-playbook.md.

Use this skill when

  • 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

🧠 Knowledge Modules (Fractal Skills)

1. 1. State Categories

2. 2. Selection Criteria

3. Zustand (Simplest)

4. Pattern 1: Redux Toolkit with TypeScript

5. Pattern 2: Zustand with Slices (Scalable)

6. Pattern 3: Jotai for Atomic State

7. Pattern 4: React Query for Server State

8. Pattern 5: Combining Client + Server State

9. Do's

10. Don'ts

11. From Legacy Redux to RTK

Expand your agent's capabilities with these related and highly-rated skills.

Didn't find tool you were looking for?

Be as detailed as possible for better results