Created
October 23, 2016 05:20
-
-
Save tannerlinsley/090f627270c0b2b4d9587890b16c1e0d 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
import Jumpstate from 'jumpstate' | |
export default Jumpstate({ | |
actionCreator: true | |
}, { | |
// Initial State | |
initial: { | |
count: 0 | |
}, | |
// Actions | |
increment (state) { | |
return { count: ++state.count } | |
}, | |
decrement (state) { | |
return { count: --state.count } | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment