Skip to content

Instantly share code, notes, and snippets.

@darrenbutcher
Created December 17, 2020 17:46
Show Gist options
  • Save darrenbutcher/d595273e3c5495f1558e320ad6ab45c5 to your computer and use it in GitHub Desktop.
Save darrenbutcher/d595273e3c5495f1558e320ad6ab45c5 to your computer and use it in GitHub Desktop.

Revisions

  1. darrenbutcher created this gist Dec 17, 2020.
    22 changes: 22 additions & 0 deletions machine.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    const machine = Machine({
    "id": "2. BYO",
    "initial": "Black Panel",
    "states": {
    "Black Panel": {
    "on": {
    "EXPAND": "Black Panel Expanded",
    "OPEN": "Pricing Modal"
    }
    },
    "Pricing Modal": {
    "on": {
    "CLOSE": "Black Panel"
    }
    },
    "Black Panel Expanded": {
    "on": {
    "COLLAPSE": "Black Panel"
    }
    }
    }
    }, {});