Created
December 21, 2018 15:15
-
-
Save jamesseanwright/a84f81808dd0dd0ced1d36e5cc9d6605 to your computer and use it in GitHub Desktop.
Roll Your Own Redux State
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
| export interface State { | |
| messages: string[]; | |
| isFormValid: boolean; | |
| isLoadingQuote: boolean; | |
| hasQuoteError: boolean; | |
| } | |
| export const defaultState: State = { | |
| messages: [], | |
| isFormValid: true, | |
| isLoadingQuote: false, | |
| hasQuoteError: false, | |
| }; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment