Skip to content

Instantly share code, notes, and snippets.

@treyhuffine
Created March 5, 2019 21:10
Show Gist options
  • Save treyhuffine/30a4dde2ab45678a2a337ee4d5dfc806 to your computer and use it in GitHub Desktop.
Save treyhuffine/30a4dde2ab45678a2a337ee4d5dfc806 to your computer and use it in GitHub Desktop.
interface FunctionComponent<P = {}> {
(props: P & { children?: ReactNode }, context?: any): ReactElement | null;
propTypes?: WeakValidationMap<P>;
contextTypes?: ValidationMap<any>;
defaultProps?: Partial<P>;
displayName?: string;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment