LogoClawIndex
案例技能关于
LogoClawIndex

ClawIndex

OpenClaw Skills 与 Use Case 索引

ClawIndex 是一个生态驱动的 OpenClaw Skills 与真实 Use Case 索引站。

索引

Skills·
Cases

Meta

关于·
声明·
邮箱·
GitHub
© 2026 ClawIndex 保留所有权利。

state-management - React 状态管理模式

使用 Zustand、Jotai 和 Context 实现 React 状态管理

标签

更新于: 2026-03-22
状态管理ReactZustandJotaiContext

能力

典型输入

典型输出

该技能可以做什么

  • 创建 Zustand store
  • 使用 Zustand 中间件
  • 创建 Jotai atoms
  • 定义派生 atoms
  • 创建 Context provider
  • 组合状态模式

输入

  • 状态接口
  • 初始值
  • React 组件树
  • 持久化配置

输出

  • store hooks
  • 状态值
  • setter 函数
  • context providers

要求

  • React
  • TypeScript
  • Zustand
  • Jotai

来源

  • 规范: SKILL.md
创建 Zustand store
使用 Zustand 中间件
创建 Jotai atoms
定义派生 atoms
状态接口
初始值
React 组件树
store hooks
状态值
setter 函数