Skip to content

Instantly share code, notes, and snippets.

@ekafyi
Created July 21, 2020 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ekafyi/ea6e6f2fec6f482d4138e460deb65037 to your computer and use it in GitHub Desktop.
Save ekafyi/ea6e6f2fec6f482d4138e460deb65037 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const handWashMachine2 = Machine({
id: 'handwash',
initial: 'unwashed',
states: {
unwashed: {
on: {
START_WASH: 'washing'
}
},
washing: {
after: {
20000: 'washed'
}
},
washed: {
type: 'final'
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment