What is Redux Toolkit and why is it recommended over plain Redux?

React data fetching and state libraries · Freshers and experienced

Model answer

Redux Toolkit (RTK) is the official, opinionated way to write Redux. configureStore sets up the store with good defaults, createSlice generates actions and reducers with less boilerplate (and lets you write "mutating" code safely through Immer), and RTK Query handles data fetching and caching.

Learn this topic

TanStack Query (React Query): Fetching, Caching and Updating Server Data in the course React.js Full Course: Beginner to Advanced.

Sign in to add your own answer.

More questions