reducer

The supplied reducer is meant to be placed to your root reducer as reduxForms. The name was chosen so that it is not too generic and doesn't conflict with your own reducers.

Note: You can of course mount the reducer with any name you like if you will only be using the redux-forms package and no native bindings.

Example

Mounting the reducer:

import { createStore, combineReducers } from 'redux';
import reduxFormsReducer from 'redux-forms';

const rootReducer = combineReducers({
    // ... your other reducers
    reduxForms: reduxFormsReducer,
})

const store = createStore(rootReducer);

results matching ""

    No results matching ""