An object masquerading as a component. These are created by functions like forwardRef, memo, and createContext.

In order to make TypeScript work, we pretend that they are normal components.

But they are, in fact, not callable - instead, they are objects which are treated specially by the renderer.

interface ExoticComponent<P> {
    $$typeof: symbol;
    (props): null | ReactElement<any, string | JSXElementConstructor<any>>;
}

Type Parameters

  • P = {}

    The props the component accepts.

Hierarchy (view full)

Properties

Properties

$$typeof: symbol

Generated using TypeDoc