As a user, I can create reducer via cli `rdc reducer <name>` command. **reducers/{name}.js** ``` const INITIAL_STATE = { }; export default (state = INITIAL_STATE, action) => { switch(action.type) { default: return state; } }; ``` **reducers/index.js** ``` import { combineReducers } from 'redux'; import {name} from './{name}'; const rootReducer = combineReducers({ {name} }); export default rootReducer; ``` @marian79 @gh3r @hwesol13 comments?
Activity
gh3r commentedon Sep 26, 2018
@Flixow Not sure about initial state, as you are creating it as an object and then assigning whole as state.
Flixow commentedon Sep 27, 2018
@gh3r All of my reducers provide objects to the store. Do you mean that reducer might not be an object?