Type alias JSXElementConstructor<P>

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

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

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

Type Parameters

  • P

    The props the component accepts.

Type declaration

    • (props, deprecatedLegacyContext?): ReactElement<any, any> | null
    • Parameters

      • props: P
      • Optional deprecatedLegacyContext: any

      Returns ReactElement<any, any> | null

Type declaration

    • new (props, deprecatedLegacyContext?): Component<any, any>
    • Parameters

      • props: P
      • Optional deprecatedLegacyContext: any

      Returns Component<any, any>

Generated using TypeDoc