The type of the component returned from forwardRef.

interface ForwardRefExoticComponent<P> {
    $$typeof: symbol;
    defaultProps?: Partial<P>;
    displayName?: string;
    propTypes?: WeakValidationMap<P>;
    (props): ReactNode;
}

Type Parameters

  • P

    The props the component accepts, if any.

Hierarchy (view full)

  • Parameters

    • props: P

    Returns ReactNode

Properties

$$typeof: symbol
defaultProps?: Partial<P>
displayName?: string

Used in debugging messages. You might want to set it explicitly if you want to display a different name for debugging purposes.

propTypes?: WeakValidationMap<P>