Skip to main content

redux

Provides comprehensive guidance for Redux state management including stores, actions, reducers, middleware, selectors, and Redux Toolkit. Use when the user asks about Redux, needs to manage global state, implement Redux patterns, or work with Redux middleware.

Quellinformationen

Repository
full-stack-skills/react-skills
Letzte Quellaktivität
3. Oktober 2026 um 17:04
Erkannte Sprache von SKILL.md
Englisch
Sterne
2
Forks
1

Installationsoptionen

Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.

Quelldateien prüfen

Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.

Datei-Explorer
3 Dateien

SKILL.md wird angezeigt

SKILL.md
Quellanweisungen · Schreibgeschützte Vorschau
name
redux
description
Provides comprehensive guidance for Redux state management including stores, actions, reducers, middleware, selectors, and Redux Toolkit. Use when the user asks about Redux, needs to manage global state, implement Redux patterns, or work with Redux middleware.
license
Apache-2.0
## 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
Auf GitHub ansehen