Skip to content

Instantly share code, notes, and snippets.

View ChrisShank's full-sized avatar
🎯
Focusing

Chris Shank ChrisShank

🎯
Focusing
View GitHub Profile
import { inspect } from '@xstate/inspect';
import {
assign,
createMachine,
interpret,
sendParent,
spawn,
actions,
send,
SpawnedActorRef,
@ChrisShank
ChrisShank / machine.js
Created April 25, 2021 06:43
Generated by XState Viz: https://xstate.js.org/viz
const clientMachine = Machine(
{
id: 'client',
initial: 'idle',
context: {
error: null,
response: null,
},
states: {
idle: {
@ChrisShank
ChrisShank / machine.js
Created April 21, 2021 23:45
Generated by XState Viz: https://xstate.js.org/viz
const machine = Machine(
{
id: 'app',
initial: 'loading',
states: {
loading: {
type: 'parallel',
states: {
animation: {
initial: 'animating',
@ChrisShank
ChrisShank / freecodecamp-build-a-pomodoro-clock.markdown
Created August 10, 2017 01:26
freeCodeCamp: Build a Pomodoro Clock