Skip to content

Instantly share code, notes, and snippets.

@chrisjarvis1
chrisjarvis1 / machine.js
Last active February 12, 2021 15:19
Generated by XState Viz: https://xstate.js.org/viz
const searchMachine = Machine({
id: "search",
context: {
result: [],
},
initial: "idle",
states: {
idle: {},
searching: {},
loaded: {},