Redux & Redux Toolkit
Six isolated examples (easy → hard). Each route has its own configureStore — copy a folder for production patterns. Use the Redux DevTools browser extension while clicking through demos. Interview Q&A: Redux & RTK notes.
| Level | Example | Concepts | Open |
|---|---|---|---|
| 1 | Example 1 — Counter | createSlice, configureStore, useDispatch, useSelector, Immer | Open |
| 2 | Example 2 — Todos + filter | payload actions, multiple slices, createSelector | Open |
| 3 | Example 3 — createAsyncThunk | createAsyncThunk, extraReducers, loading / error state | Open |
| 4 | Example 4 — Login flow | auth slice, rejectWithValue, login interview flow | Open |
| 5 | Example 5 — RTK Query | createApi, fetchBaseQuery, mutations, cache tags | Open |
| 6 | Example 6 — Production patterns | listener middleware, multi-feature store, typed hooks | Open |
How to study
- Read the page intro, then open the listed source files on each example.
- Example 4 is the login interview walkthrough — compare with Example 3 for generic async API patterns.
- Example 5 shows the same auth API with RTK Query instead of manual thunks.
Markdown notes (repo)
Notes live next to each example as NOTES.md.
- Track overviewsrc/app/learn/redux/NOTES.md
- Example 1 — Countersrc/app/learn/redux/example-1-counter/NOTES.md
- Example 2 — Todos + filtersrc/app/learn/redux/example-2-todos/NOTES.md
- Example 3 — createAsyncThunksrc/app/learn/redux/example-3-async-thunk/NOTES.md
- Example 4 — Login flowsrc/app/learn/redux/example-4-login/NOTES.md
- Example 5 — RTK Querysrc/app/learn/redux/example-5-rtk-query/NOTES.md
- Example 6 — Production patternssrc/app/learn/redux/example-6-patterns/NOTES.md