πŸͺ

Redux Toolkit (RTK)

Intermediate β†’ Advanced

The official, opinionated toolset for Redux β€” built-in Immer, createAsyncThunk, and RTK Query

Redux Toolkit vs Redux

RTK is the modern way to write Redux. It eliminates boilerplate: no separate action creators, no switch statements, Immer built-in for mutable syntax. Install: npm i @reduxjs/toolkit react-redux

configureStore & createSlice β€” The Foundation

intermediate

configureStore sets up Redux with DevTools + middleware. createSlice automatically generates action creators and action types from reducers.

createAsyncThunk β€” Async Actions

intermediate

Handle async operations (API calls) with built-in pending/fulfilled/rejected lifecycle. Works with extraReducers in your slice.

createSelector β€” Memoized Selectors

advanced

createSelector from reselect creates memoized selectors that only recompute when inputs change. Essential for derived state and performance.

Redux Toolkit β€” Entity Adapter & RTK Query

advanced

createEntityAdapter normalizes state shape for CRUD operations. RTK Query is a powerful data fetching and caching solution built into Redux Toolkit.