Skip to content

Instantly share code, notes, and snippets.

@marcelmokos
Last active June 1, 2018 00:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marcelmokos/9f728f9239f46e082fb7143bff0b92dd to your computer and use it in GitHub Desktop.
Save marcelmokos/9f728f9239f46e082fb7143bff0b92dd to your computer and use it in GitHub Desktop.
React optionally controlled components
// @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