Created
October 23, 2016 05:02
-
-
Save tannerlinsley/cc7deab567c06983a34272b32f3498a2 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({ | |
// 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