Skip to content

Instantly share code, notes, and snippets.

@chenkie
Last active January 20, 2021 22:50
Embed
What would you like to do?
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