Last active
December 28, 2020 10:10
-
-
Save samihult/5ed20856d14030806e4bc3d06748765a to your computer and use it in GitHub Desktop.
Generated by XState Viz: https://xstate.js.org/viz
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 characters
| const machine = Machine({ | |
| id: 'field', | |
| type: 'parallel', | |
| states: { | |
| value: { | |
| initial: 'empty', | |
| states: { | |
| empty: {}, | |
| 'not empty': {} | |
| } | |
| }, | |
| phase: { | |
| initial: 'untouched', | |
| states: { | |
| untouched: {}, | |
| dirty: {} | |
| } | |
| } | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment