Loading tutorials
useState and useEffect hooks. You should understand immutability and pure functions at a basic level. No Redux knowledge is needed.3 min readcreateSlice and know that a reducer is a pure function. It also assumes you have a React project with @reduxjs/toolkit and react-redux installed.2 min readcreateSlice, build a store with configureStore, and read basic React components with hooks. Here you connect that store to a component tree. React-Redux provides three tools for this: Provider, useSelector and useDispatch.2 min readuseSelector. It builds on the React-Redux bindings chapter.2 min readcreateSlice, read state with useSelector, and know why global state exists. Here you decide what belongs in the store and how to lay it out.2 min readtypeof), and that you have a working store from configureStore and know the useSelector and useDispatch hooks. It also assumes React-Redux 9.1 or later, which withTypes requires.2 min readcreateSlice, know that Immer lets reducers "mutate" draft state, and understand that every dispatched action reaches every reducer in the store.2 min readcreateSlice, configure a store, and use useSelector and useDispatch. It also assumes you know fetch, promises, and async/await. The goal is to load data from a server and track the request in the store.2 min readuseSelector and useDispatch. It also assumes you have seen createAsyncThunk. RTK Query is a data fetching and caching tool that ships inside Redux Toolkit. It replaces the hand-written thunk, loading flags, and error fields2 min readcreateSlice, build selectors, and read state with useSelector. It also assumes you understand why state shape matters, as covered in the earlier chapters.2 min readconfigureStore, and dispatch actions from React components. It also assumes you know how createAsyncThunk works. Here you will learn where middleware sits in the Redux data flow, what configureStore adds by default, and how to 2 min readconfigureStore and at least one slice from createSlice. You should also be comfortable with how actions flow through reducers.2 min readcreateSlice, configureStore, createSelector, and the React-Redux hooks from earlier chapters. It also assumes you have a test runner such as Vitest or Jest. The examples use Vitest and React Testing Library.2 min read