react-state

Guide React state management with Redux Toolkit, Zustand, Jotai, and React Query.

7|2|Updated Jan 28, 2026
One-click install
npx skills add https://github.com/LuisSambrano/antigravity-config --skill react-state-luissambrano
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: react-state
Source: https://github.com/LuisSambrano/antigravity-config/tree/main/skills/3-web/react-state
Command: npx skills add https://github.com/LuisSambrano/antigravity-config --skill react-state-luissambrano

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the complexity of managing application state in React, offering guidance on choosing and implementing the most effective state management solutions for various project needs.

Core Features & Use Cases

  • State Strategy Guidance: Helps select between local, global, server, URL, and form state solutions.
  • Tool Implementation: Provides examples for Redux Toolkit, Zustand, Jotai, and React Query.
  • Use Case: When building a new feature that requires sharing user authentication status across multiple components, this Skill guides you on setting up a global state solution like Zustand or Redux Toolkit.

Quick Start

Use the react-state skill to set up a global state store using Zustand with persistence.

Frequently Asked Questions about react-state

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
What is the best way to manage React state for a new application feature?

The best way to manage React state is to identify whether you need local, global, server, URL, or form state, then select a matching tool like Zustand or Redux Toolkit to implement the correct pattern efficiently.

How do I choose between Zustand, Jotai, and Redux Toolkit for global state?

Choosing between Zustand, Jotai, and Redux Toolkit depends on your state categories and selection criteria, evaluating each tool's implementation patterns to match your specific application needs and migration strategies.

When should I use React Query for server state instead of Redux Toolkit?

You should use React Query for server state instead of Redux Toolkit when managing remote data fetching, caching, and synchronization, reserving Redux Toolkit for client-side global state management.

How do I set up a global state store using Zustand with persistence?

To set up a global state store using Zustand with persistence, utilize the state management guidance to configure your store, enabling persistence to maintain user authentication status across multiple components.

Can I migrate my existing React state management to Jotai or Zustand?

You can migrate existing React state management to Jotai or Zustand by following targeted migration strategies that address state categories and selection criteria for efficient application development.