Replacing the Reducer
Learn how to replace the reducer during runtime.
We'll cover the following...
When creating the Redux store, a reducer function (often referred to as the root reducer) is passed as the first parameter to createStore()
.
We can use the store’s replaceReducer()
method to replace this reducer function. Usually, this method is used in development to allow hot replacement of reducers. It might be used to dynamically decorate
or replace
the root reducer in complex applications ...