Function: forwardRef()
forwardRef<
T
,P
>(render
):ForwardRefExoticComponent
<P
> |ForwardRefExoticComponent
<PropsWithoutRef
<P
> &RefAttributes
<T
>>
Shim to be compatible with React 19.
Type Parameters
• T
• P = object
Parameters
• render: ForwardRefRenderFunction
<T
, P
& object
>
the forward ref render function.
Returns
ForwardRefExoticComponent
<P
> | ForwardRefExoticComponent
<PropsWithoutRef
<P
> & RefAttributes
<T
>>
the React component.