React · Junior · Question 44 of 75

What does configureStore from Redux Toolkit do?

Explanation

configureStore({ reducer: { todos: todosReducer } }) combines reducers, adds the redux-thunk middleware, hooks up Redux DevTools and, in development, checks for accidental mutations and non-serializable values. Connecting to React is still done via <Provider store={store}>.

Further reading

Problem with a question

React · Junior · question 44

Test yourself

Take the React · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz