Skip to content

Instantly share code, notes, and snippets.

@laduke
Last active September 19, 2019 23:15
Show Gist options
  • Save laduke/645f066f9b05025d011ee228a6383500 to your computer and use it in GitHub Desktop.
Save laduke/645f066f9b05025d011ee228a6383500 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const myMachine = Machine({
type: 'parallel',
context: {},
states: {
hi: {
initial: 'no',
states: {
yes: {},
no: { on: { CLICK_ME: 'yes' } }
}
},
bye: {
initial: 'no',
states: {
yes: {},
no: {}
}
}
},
on: {
THEN_ME: { actions: 'myAction' }
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment