Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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 }
- }
- })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement