Type alias JSXElementConstructor<P>

JSXElementConstructor<P>: ((props: P, deprecatedLegacyContext?: any) => ReactElement<any, any> | null) | (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.

Generated using TypeDoc