Created
August 13, 2020 05:30
-
-
Save NicholasBoll/3d3005fddd18a65d165982263d458504 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 tooltipMachine = Machine({ | |
id: "tooltip", | |
initial: "closed", | |
states: { | |
closing: { on: { CLOSE: "closed", OPEN: "opened" } }, | |
closed: { on: { OPEN: "opened" } }, | |
opened: { on: { CLOSING: "closing", CLOSE: "closed" } } | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment