Skip to content

Instantly share code, notes, and snippets.

@chenkie
Last active January 20, 2021 22:50
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chenkie/eb1609956f31adf023044d0703d85ca7 to your computer and use it in GitHub Desktop.
Save chenkie/eb1609956f31adf023044d0703d85ca7 to your computer and use it in GitHub Desktop.
interface FunctionComponent<P = {}> {
(props: PropsWithChildren<P>, context?: any): ReactElement<any, any> | 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