full-stack-skills/react-skills

redux

Provides comprehensive guidance for Redux state management including stores, actions, reducers, middleware, selectors, and Redux Toolkit.

查看源码

使用方法

  1. 复制安装命令,在自己的智能体环境安装前先检查源码包。
  2. 从原始文档核对所需工具、凭据和支持的宿主。
  3. 说明输入材料与期望交付物,并对照来源检查输出。
npx skills add https://github.com/full-stack-skills/react-skills --skill redux

开始前需了解

  • 安装不包含模型订阅、API 额度或访问文件的权限。
  • 仓库星数和安装量反映活跃情况,不等于独立质量或安全测试。
仓库原始内容

按源仓库内容呈现,保留标题、案例、代码、表格、链接以及原文引用的演示图片。

When to use this skill

Use this skill whenever the user wants to:

  • 用 Redux 管理 React 应用全局状态(store、reducer、action、dispatch)
  • 使用 Redux Toolkit(createSlice、configureStore)或经典写法

How to use this skill

  1. 核心:store、reducer、action、dispatch; useSelector、useDispatch。
  2. Toolkit:createSlice、configureStore、createAsyncThunk;DevTools 与中间件。
  3. 参考:https://react-redux.js.org/ 、https://redux-toolkit.js.org/

Best Practices

  • 状态扁平、按域切 reducer;action 与 reducer 纯函数。
  • 异步用 thunk 或 RTK Query;避免在 reducer 中请求。

Keywords

redux, Redux Toolkit, store, 状态管理, React

按任务相关推荐

来自同一仓库

更多 Skills

全部 Skills
full-stack-skills
社区

nextjs

Guidance for Next.js using the official docs at nextjs.org/docs. Use when the user needs Next.js concepts, configuration, routing, data fetching, or API reference details.

安装量
2
GitHub Stars
2
最近更新
10月3日
full-stack-skills
社区

react

Provides comprehensive guidance for React development including components, JSX, props, state, hooks, context, performance optimization, and best practices. Use when the user asks about React, needs to create React components, implement hooks, manage component state, or build React applications.

安装量
2
GitHub Stars
2
最近更新
10月3日
full-stack-skills
社区

react-hooks

Provides comprehensive guidance for React Hooks including useState, useEffect, useContext, useReducer, useMemo, useCallback, custom hooks, and hook patterns. Use when the user asks about React Hooks, needs to use hooks in functional components, create custom hooks, or optimize hook performance.

安装量
2
GitHub Stars
2
最近更新
10月3日
full-stack-skills
社区

react-native

Provides comprehensive guidance for React Native development including components, navigation, native modules, platform-specific code, and mobile app development. Use when the user asks about React Native, needs to create mobile applications, implement React Native components, or work with React Native features.

安装量
1
GitHub Stars
2
最近更新
10月3日