ComponentType<P>: ComponentClass<P> | FunctionComponent<P>

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

Similar to JSXElementConstructor, but with extra properties like defaultProps and contextTypes.

Type Parameters

  • P = {}

    The props the component accepts.