Skip to content

Instantly share code, notes, and snippets.

@erikras
Created April 22, 2021 13:05
Show Gist options
  • Save erikras/f39d25bb5e52e1a5677903431b050fc6 to your computer and use it in GitHub Desktop.
Save erikras/f39d25bb5e52e1a5677903431b050fc6 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const memeMachine = Machine({
id: 'meme',
initial: 'stateMachines',
states: {
stateMachines: {
on: {
NO_IDEA_WHAT_THEY_ARE: 'stateMachines',
OMG_THEYRE_EVERYWHERE: 'howDoesThisMemeWork'
}
},
howDoesThisMemeWork: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment