Search
    Preparing search index...

    Interface RefForwardingComponent<T, P>

    Use ForwardRefRenderFunction. forwardRef doesn't accept a "real" component.

    interface RefForwardingComponent<T, P = {}> {
        defaultProps?: undefined;
        displayName?: string;
        propTypes?: undefined;
        (
            props: PropsWithChildren<P>,
            ref: null | ((instance: null | T) => void) | MutableRefObject<null | T>,
        ): null | ReactElement<any, string | JSXElementConstructor<any>>;
    }

    Type Parameters

    • T
    • P = {}

    Hierarchy (View Summary)

    Index

    Properties

    defaultProps?: undefined

    defaultProps are not supported on render functions

    displayName?: string
    propTypes?: undefined

    propTypes are not supported on render functions