JSXElementConstructor:
    | (props: P) => ReactNode | Promise<ReactNode>
    | new (props: P) => 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.

Type Parameters

  • P

    The props the component accepts.