How to use
- Copy the installation command and review the source package before installing it in your own agent environment.
- Check the source document for required tools, credentials and supported hosts.
- 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 reduxBefore 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.
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
- 核心:store、reducer、action、dispatch; useSelector、useDispatch。
- Toolkit:createSlice、configureStore、createAsyncThunk;DevTools 与中间件。
- 参考: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



