Created
December 17, 2018 19:24
-
-
Save FermiDirak/7e6952e1336098da4dad9d6ba545c99a to your computer and use it in GitHub Desktop.
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
type Props = {| | |
value: string, | |
label: string, | |
disabled: boolean, | |
onChange?: (newValue: T) => void, | |
onBlur?: (newValue: T) => void, | |
|}; | |
const defaultProps = { | |
disabled: false, | |
}; | |
const TextInput = (props: Props) => { | |
... | |
}; | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment