Last active
June 29, 2020 17:35
-
-
Save kellyjandrews/2d260c1f9c7b51ed47c4cf7bbc61b4df to your computer and use it in GitHub Desktop.
Revisions
-
kellyjandrews revised this gist
Jun 29, 2020 . 1 changed file with 5 additions and 18 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,21 +1,8 @@ const video = Machine({ id: 'video', initial: 'disconnected', states: { disconnected: {}, connected: {} } }); -
kellyjandrews created this gist
Jun 29, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ const shoppingCard = Machine({ id: 'shoppingCart', initial: 'empty', states: { empty: { on: { ADD_ITEM: 'full' } }, full: { on: { ADD_ITEM: 'full', CHECKOUT: 'checkout', EMPTY_CART: 'empty' } }, checkout: { type: 'final' } } });