Skip to content

Instantly share code, notes, and snippets.

@erikras
Last active January 20, 2021 14:53
Show Gist options
  • Save erikras/9813a82299d9f9e79273183225df1449 to your computer and use it in GitHub Desktop.
Save erikras/9813a82299d9f9e79273183225df1449 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const government = Machine({
id: 'USA 🇺🇸',
initial: 'Trump',
states: {
Trump: {
on: {
INAUGURATION: 'Biden'
}
},
Biden: {
final: true // only for a few years!
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment