Skip to content

Latest commit

 

History

History
13 lines (9 loc) · 512 Bytes

reducer.md

File metadata and controls

13 lines (9 loc) · 512 Bytes

Reducer

Unlike conventional Redux state management, redux-rest-easy only needs one reducer. It will be generated and managed automatically. All you need to do is to import it under the name restEasy. This name is mandatory, and selectors won't work if you change it.

import { reducer } from '@brigad/redux-rest-easy';

const reducers = combineReducers({
  restEasy: reducer,
});

An overview of what the state will look like can be found in the reducers documentation.