Юниверс DG SDK UI
v2.15.0

Интерфейс 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: ((instance: T | null) => void) | MutableRefObject<T | null> | null,
    ): ReactElement<any, string | JSXElementConstructor<any>> | null;
}

Параметры типа

  • T
  • P = {}

Иерархия (Просмотр сводки)

Индекс

Свойства

defaultProps?: undefined

defaultProps are not supported on render functions

displayName?: string
propTypes?: undefined

propTypes are not supported on render functions