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
Machine({ | |
initial: 'active', | |
context: { C: undefined, F: undefined }, | |
states: { | |
active: { | |
on: { | |
CELSIUS: { | |
actions: assign({ | |
C: (_, event) => Number(event.value), | |
F: (_, event) => CtoF(event.value) |
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 emailStates = { | |
initial: 'noError', | |
states: { | |
noError: {}, | |
error: { | |
initial: 'empty', | |
states: { | |
empty: {}, | |
badFormat: {}, | |
noAccount: {} |
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
### Keybase proof | |
I hereby claim: | |
* I am schryer on github. | |
* I am schryer (https://keybase.io/schryer) on keybase. | |
* I have a public key ASCRmNyt8qkKt-TRIgnbbkDsUT447YQ-tY9Q0bNyW-Bk-Ao | |
To claim this, I am signing this object: |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.