use input as store/reducer
This commit is contained in:
parent
c42ac8fac4
commit
6127fdc285
5 changed files with 44 additions and 37 deletions
|
@ -1,7 +1,11 @@
|
|||
import inputReducer from '../reducers/input';
|
||||
|
||||
const defaultState = {
|
||||
input: inputReducer(undefined, {})
|
||||
};
|
||||
|
||||
export default function reducer(state = defaultState/*, action = {}*/) {
|
||||
export default function reducer(state = defaultState, action = {}) {
|
||||
return Object.assign({}, state, {
|
||||
input: inputReducer(state.input, action)
|
||||
});
|
||||
}
|
||||
|
|
Reference in a new issue