What is the Redux store?
Answer
The Redux store is the central object that holds the application's complete state tree. Create it: const store = configureStore({ reducer: { todos: todosReducer, user: userReducer } }). Key store methods: getState(): returns the current state. dispatch(action): sends an action through reducers to update state. subscribe(listener): registers a callback called after every state change. replaceReducer(): for code splitting. The store is the single source of truth — there is one store per Redux app. With Redux Toolkit's configureStore: sets up Redux DevTools automatically, enables Immer for immutable updates, adds Redux Thunk middleware by default, and includes helpful development checks. In React apps, the store is provided via the <Provider store={store}> wrapper component from react-redux, making it accessible anywhere in the component tree via hooks like useSelector and useDispatch.