Created
November 24, 2020 17:59
-
-
Save nzoelle24/7b63b7d6b293c27c20a7bc1a7848d34b 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