Function: forwardRef()
forwardRef<
T,P= { }>(render:ForwardRefRenderFunction<T,PropsWithoutRef<P>>):ForwardRefExoticComponent<PropsWithoutRef<P> &RefAttributes<T>>
Lets your component expose a DOM node to a parent component using a ref.
Type Parameters
Parameters
Returns
ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>