Skip to content

Instantly share code, notes, and snippets.

@AriTheElk
Last active October 29, 2019 00:07
Show Gist options
  • Save AriTheElk/3c25745956163f7216c8b5a43c2ad2f5 to your computer and use it in GitHub Desktop.
Save AriTheElk/3c25745956163f7216c8b5a43c2ad2f5 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const appMachine = Machine({
id: "tabs",
initial: "search",
states: {
search: {
on: {
HELP: "help",
SETTINGS: "settings"
}
},
help: {
on: {
SEARCH: "search",
SETTINGS: "settings"
}
},
settings: {
on: {
SEARCH: "search",
HELP: "help"
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment