react-state-management

Installation
Summary

Modern React state management with Redux Toolkit, Zustand, Jotai, and React Query for every state category.

  • Covers five state types: local component state, global state, server state, URL state, and form state, with recommended solutions for each
  • Includes complete TypeScript patterns for Redux Toolkit slices, Zustand with scalable slice architecture, Jotai atomic state, and React Query with optimistic updates
  • Demonstrates combining client state (Zustand) with server state (React Query) in a single application
  • Provides selection criteria to choose between solutions based on app complexity, server interaction patterns, and update granularity
  • Includes best practices for colocating state, normalizing data, using selectors to prevent re-renders, and migration guidance from legacy Redux
SKILL.md

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
Related skills

More from wshobson/agents

Installs
8.4K
Repository
wshobson/agents
GitHub Stars
35.2K
First Seen
Jan 20, 2026