redux
Installation
SKILL.md
When to use this skill
Use this skill whenever the user wants to:
- Manage global application state with Redux or Redux Toolkit
- Create slices with
createSliceand configure the store withconfigureStore - Handle asynchronous logic with
createAsyncThunkor RTK Query - Use
useSelectoranduseDispatchhooks in React components - Implement middleware, selectors, and normalized state patterns
- Migrate from classic Redux to Redux Toolkit
How to use this skill
Workflow
- Identify the state domain the user needs to manage
- Create a slice using Redux Toolkit's
createSlice - Configure the store and provide it to the React app
- Connect components using
useSelectoranduseDispatch