Created
November 24, 2020 18:00
-
-
Save nzoelle24/eebc8060bce2b1e1408039a74db4df59 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
This file contains hidden or 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 machine = Machine({ | |
id: 'modalMachine', | |
initial: 'closed', | |
states: { | |
closed: { | |
on: { | |
OPEN: { | |
target: 'open' | |
} | |
} | |
}, | |
open: { | |
on: { | |
CLOSE: 'closed' | |
} | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment