@lynx-js/react / forwardRef
Lets your component expose a DOM node to a parent component using a ref.
| Type Parameter | Default type | Description |
|---|---|---|
T | - | The type of the DOM node. |
P | object | The props the component accepts, if any. |
| Parameter | Type | Description |
|---|---|---|
render | ForwardRefRenderFunction<T, PropsWithoutRef<P>> | See the ForwardRefRenderFunction. |
ForwardRefExoticComponent<PropsWithoutRef<P> & RefAttributes<T>>
.pnpm/@types+react@18.3.11/node_modules/@types/react/ts5.0/index.d.ts:1606