Created
February 13, 2020 15:56
-
-
Save dimitardanailov/dda8456834cd5ad3263a256fc3b45c6c to your computer and use it in GitHub Desktop.
Revisions
-
dimitardanailov created this gist
Feb 13, 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,12 @@ const lightBulbMachine = Machine({ id: 'toggle', initial: 'inactive', states: { inactive: { on: {TOGGLE: 'active'}, }, active: { on: {TOGGLE: 'inactive'}, }, }, })