Created
November 24, 2020 17:59
-
-
Save nzoelle24/7b63b7d6b293c27c20a7bc1a7848d34b to your computer and use it in GitHub Desktop.
Revisions
-
nzoelle24 created this gist
Nov 24, 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,19 @@ const machine = Machine({ id: 'modalMachine', initial: 'closed', states: { closed: { on: { OPEN: { target: 'open' } } }, open: { on: { CLOSE: 'closed' } } } });