injectReducer
Higher-Order Components for injecting Reducers asynchronously.
The Reducer with a duplicate key
will be ignored.
The Reducer stays in the runtime after component is unmounted.
Arguments
key
(String
): A stringkey
to identify the reducer in the State.reducer
(Function
): A reducer function to be injected.
Returns
(Function
): A Higher-Order Components function that accepts a React Component.
Example
Last updated