Skip to content

Instantly share code, notes, and snippets.

View JamesTeague's full-sized avatar
🏈

James Teague II JamesTeague

🏈
  • Bluebeam, Inc.
  • Dallas, TX, United States
View GitHub Profile
@JamesTeague
JamesTeague / machine.js
Created February 25, 2020 14:45
Generated by XState Viz: https://xstate.js.org/viz
const addLayer = assign({
layersCount: (context, event) => context.layersCount + 1
});
const integratingDocs = {
initial: 'integrating-docs',
states: {
"integrating-docs" : {
on: {
PROVIDER_SELECT: 'connecting-to-provider'
@JamesTeague
JamesTeague / machine.js
Created February 25, 2020 15:57
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions