redux-toolkit
Installation
SKILL.md
Redux Toolkit
Redux state with simplified API. createSlice, configureStore, RTK Query for predictable state and async logic.
When to Use
- Global app state in React (slices, store, middleware)
- Async logic (RTK Query, createAsyncThunk)
- Normalizing entities with EntityAdapter
- Replacing legacy Redux
Don't use for:
- Local state (use useState/useReducer)
- Server state caching (use React Query/SWR)
- Non-React Redux