Skip to content

Instantly share code, notes, and snippets.

@ivanbtrujillo
Created September 19, 2021 12:10
Show Gist options
  • Save ivanbtrujillo/8302c0ce1a7f0022695192ce0000ffef to your computer and use it in GitHub Desktop.
Save ivanbtrujillo/8302c0ce1a7f0022695192ce0000ffef to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const lightMachine = Machine({
id: 'light',
initial: 'off',
states: {
off: { on: { TOGGLE: 'on' } },
on: { on: { TOGGLE: 'off' } }
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment