Last active
March 20, 2016 20:17
-
-
Save chuck0523/6118d13432b79e522230 to your computer and use it in GitHub Desktop.
This file contains 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
const slide = (state = 0, action) => { | |
switch(action.type) { | |
case 'PREV_PAGE': | |
return action.page | |
case 'NEXT_PAGE': | |
return action.page | |
default: | |
return state | |
} | |
} | |
export default slide |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment