Updated ReactReduxSpa template to match current patterns

This commit is contained in:
SteveSandersonMS
2016-09-28 17:43:22 +01:00
parent a9ce762827
commit 0a961a7bd0
12 changed files with 95 additions and 57 deletions

View File

@@ -33,7 +33,7 @@ export const reducer: Reducer<CounterState> = (state, action) => {
if (isActionType(action, IncrementCount)) {
return { count: state.count + 1 };
}
// For unrecognized actions (or in cases where actions have no effect), must return the existing state
// (or default initial state if none was supplied)
return state || { count: 0 };