state-management - React 状态管理模式
使用 Zustand、Jotai 和 Context 实现 React 状态管理
标签
更新于: 2026-03-22能力
典型输入
典型输出
该技能可以做什么
- 创建 Zustand store
- 使用 Zustand 中间件
- 创建 Jotai atoms
- 定义派生 atoms
- 创建 Context provider
- 组合状态模式
输入
- 状态接口
- 初始值
- React 组件树
- 持久化配置
输出
- store hooks
- 状态值
- setter 函数
- context providers
要求
- React
- TypeScript
- Zustand
- Jotai
