zustand-store-ts - 基于 TypeScript 的 Zustand 存储
使用 TypeScript、subscribeWithSelector 中间件以及状态与操作分离规范创建 Zustand 存储。
标签
更新于: 2026-09-10能力
典型输入
典型输出
该技能可以做什么
- 创建 Zustand 存储
- 应用 subscribeWithSelector 中间件
- 分离状态与操作
- 使用独立状态选择器
- 在 React 组件外订阅
输入
- 存储名称
- JSDoc 描述
- 存储模板
输出
- Zustand 存储文件
- 索引文件中的存储导出
- 存储单元测试文件
要求
- TypeScript
- Zustand
- React
