Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 468 Bytes

Reducer.md

File metadata and controls

28 lines (21 loc) · 468 Bytes

Reducer

The reducer will handle all actions dispatched by the action creators.

Configuration

import { reducer } from 'redux-clerk'

const todos = reducer({
  actionPrefix: 'TODOS'
})

export default todos

Usage

Once the reducer is configured, it will need to be added to the root reducer.

import todos from './reducers/todos'

const rootReducer = combineReducers({
  ...
  todos
  ...
})

export default rootReducer