Last active
June 1, 2018 00:04
-
-
Save marcelmokos/9f728f9239f46e082fb7143bff0b92dd to your computer and use it in GitHub Desktop.
React optionally controlled components
This file contains 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
// @flow | |
import { type Log } from "./Logs"; | |
type PropsAndState = { | |
/** value */ | |
value: number, | |
/** update value */ | |
updateValue: number => void, | |
}; | |
type Props = PropsAndState & { log: Log }; | |
type State = PropsAndState & {}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment