mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Updated ReactReduxSpa template to match current patterns
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user