React · Junior · Question 44 of 75
What does configureStore from Redux Toolkit do?
- ✓Correct answer: Creates a store with sensible defaults: thunk, DevTools
- 2Generates reducers and actions from a data schema description
- 3Connects the store to React components without
<Provider>
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}>.