An ExoticComponent with a displayName property applied to it.

interface NamedExoticComponent<P> {
    $$typeof: symbol;
    displayName?: string;
    (props): ReactNode;
}

Type Parameters

  • P = {}

    The props the component accepts.

Hierarchy (view full)

  • Parameters

    • props: P

    Returns ReactNode

Properties

$$typeof: symbol
displayName?: string

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