Created
June 2, 2015 15:14
-
-
Save devknoll/bd80f1f55f645140ad34 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function CounterStore(state = initialState, action) { | |
switch (action.type) { | |
case INCREMENT_COUNTER: | |
return incremenent(state, action); | |
case DECREMENT_COUNTER: | |
return decremenent(state, action); | |
default: | |
return state; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment