Skip to content

Instantly share code, notes, and snippets.

@marcincodes
Created April 22, 2021 09:36
Show Gist options
  • Save marcincodes/0df41b8d75667aff12a12cfcf168a90a to your computer and use it in GitHub Desktop.
Save marcincodes/0df41b8d75667aff12a12cfcf168a90a to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
Machine({
id: 'toggle',
initial: 'inactive',
states: {
inactive: { on: { TOGGLE: 'active' } },
active: { on: { TOGGLE: 'inactive' } }
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment