full-stack-skills/react-skills

redux

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

Vedi sorgente

Come usare

  1. Copia il comando e controlla il pacchetto prima di installarlo nel tuo ambiente agente.
  2. Controlla strumenti, credenziali e ambienti richiesti nel documento originale.
  3. Descrivi input e risultato desiderato; confronta l’output con le fonti.
npx skills add https://github.com/full-stack-skills/react-skills --skill redux

Prima di iniziare

  • L’installazione non include abbonamenti, quote API o accesso ai file.
  • Stelle e installazioni indicano attività, non un test indipendente di qualità o sicurezza.
Documento Skill originale

Contenuto dal repository con titoli, esempi, codice, tabelle, link e immagini preservati.

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

Correlati per attività

dallo stesso repository

Altri Skills

Tutti gli 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.

installazioni
2
GitHub Stars
2
Aggiornato
3 ott
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.

installazioni
2
GitHub Stars
2
Aggiornato
3 ott
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.

installazioni
2
GitHub Stars
2
Aggiornato
3 ott
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.

installazioni
1
GitHub Stars
2
Aggiornato
3 ott