Created
September 13, 2019 16:35
-
-
Save jeremy-green/156467f540d8ff86bed90759119af6fb to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new Machine({ | |
id: `switch`, | |
initial: 'on', | |
context: {}, | |
states: { | |
on: { | |
on: { | |
TOGGLE: 'off', | |
}, | |
}, | |
off: { | |
on: { | |
TOGGLE: 'on', | |
}, | |
}, | |
}, | |
}) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment