Skip to content

Instantly share code, notes, and snippets.

@jcdickinson
Last active July 1, 2021 21:38
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 jcdickinson/1052c0e1af744fc1c38649a8ebabf4c4 to your computer and use it in GitHub Desktop.
Save jcdickinson/1052c0e1af744fc1c38649a8ebabf4c4 to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
initial: "dragging",
context: {},
entry: () => console.log("started"),
states: {
dragging: {
on: {
pointerup: "drop"
}
},
drop: {
type: "final",
entry: () => console.log("reached final action")
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment