Type Alias JSXElementConstructor<P>

JSXElementConstructor:
    | (props: P, deprecatedLegacyContext?: any) => ReactNode
    | new (props: P, deprecatedLegacyContext?: any) => Component<any, any>

Represents any user-defined component, either as a function or a class.

Similar to ComponentType, but without extra properties like FunctionComponent.defaultProps defaultProps and ComponentClass.contextTypes contextTypes.

Type Parameters

  • P

    The props the component accepts.