Skip to content

Instantly share code, notes, and snippets.

@mwarger
Created March 29, 2020 19:12
Show Gist options
  • Save mwarger/bd2b2f9caf3838f1c2f0a58bbf2101bc to your computer and use it in GitHub Desktop.
Save mwarger/bd2b2f9caf3838f1c2f0a58bbf2101bc to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const toggleMachine = 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