full-stack-skills/react-skills

redux

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

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/full-stack-skills/react-skills --skill redux

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

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

Related by task

from this repository

More skills

All skills
full-stack-skills
Community

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.

installs
2
GitHub stars
2
Updated
Oct 3
full-stack-skills
Community

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.

installs
2
GitHub stars
2
Updated
Oct 3
full-stack-skills
Community

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.

installs
2
GitHub stars
2
Updated
Oct 3
full-stack-skills
Community

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.

installs
1
GitHub stars
2
Updated
Oct 3