跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

Zustand Store (TypeScript)

技能 已验证 活跃

Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state/action separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.

目的

To provide a robust and well-structured template for creating Zustand stores with TypeScript, promoting best practices in React state management.

功能

  • Zustand store creation with TypeScript
  • Integration of subscribeWithSelector middleware
  • Clear separation of state and actions
  • Guidance on using individual selectors for performance
  • Example for subscribing to store changes outside React

使用场景

  • Building React state management solutions
  • Creating global stores for applications
  • Implementing reactive state patterns with Zustand
  • Establishing consistent patterns for Zustand store development

非目标

  • Replacing other state management libraries
  • Providing a runtime service
  • Managing complex application logic beyond store creation

安装

请先添加 Marketplace

/plugin marketplace add microsoft/skills
/plugin install azure-sdk-typescript@skills

质量评分

已验证
98 /100
1 day ago 分析

信任信号

最近提交1 day ago
星标2.3k
许可证MIT
状态
查看源代码

类似扩展