Skip to content

Instantly share code, notes, and snippets.

@tannerlinsley
Created October 23, 2016 05:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tannerlinsley/090f627270c0b2b4d9587890b16c1e0d to your computer and use it in GitHub Desktop.
Save tannerlinsley/090f627270c0b2b4d9587890b16c1e0d to your computer and use it in GitHub Desktop.
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