Last active
September 9, 2020 06:44
-
-
Save eveporcello/556b5b06df077a26d04a898e74f76a96 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
const menuMachine = Machine({ | |
id: 'menu', | |
initial: 'collapsed', | |
states: { | |
expanded: { | |
on: { | |
COLLAPSE: 'collapsed' | |
} | |
}, | |
collapsed: { | |
on: { | |
EXPAND: 'expanded' | |
} | |
} | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment