interface FunctionComponent<P> {
    contextTypes?: ValidationMap<any>;
    defaultProps?: Partial<P>;
    displayName?: string;
    propTypes?: WeakValidationMap<P>;
    (props: PropsWithChildren<P>, context?: any): null | ReactElement<any, any>;
}

Type Parameters

  • P = {}
  • Parameters

    Returns null | ReactElement<any, any>

Properties

contextTypes?: ValidationMap<any>
defaultProps?: Partial<P>
displayName?: string
propTypes?: WeakValidationMap<P>