Initial commit from boilerplate

This commit is contained in:
2017-02-01 22:09:06 -07:00
commit ff17b2a0d3
45 changed files with 2219 additions and 0 deletions

22
app/reducers/counter.js Normal file
View File

@@ -0,0 +1,22 @@
import * as types from '../actions/actionTypes';
const initialState = {
count: 0
};
export default function counter(state = initialState, action = {}) {
switch (action.type) {
case types.INCREMENT:
return {
...state,
count: state.count + 1
};
case types.DECREMENT:
return {
...state,
count: state.count - 1
};
default:
return state;
}
}

5
app/reducers/index.js Normal file
View File

@@ -0,0 +1,5 @@
import counter from './counter';
export {
counter
};