Type alias JSXElementConstructor<P>
JSXElementConstructor<P>: ((props,
deprecatedLegacyContext?) => ReactNode) | (new (props,
deprecatedLegacyContext?) => Component<any, any>) Type declaration
- (props, deprecatedLegacyContext?): ReactNode
Parameters
- props: P
Optional
deprecatedLegacyContext: any
Type declaration
- new (props, deprecatedLegacyContext?): Component<any, any>
Parameters
- props: P
Optional
deprecatedLegacyContext: any
Represents any user-defined component, either as a function or a class.
Similar to ComponentType, but without extra properties like defaultProps and contextTypes.