forwardRef

The older React API needed to let a function component receive a ref from its parent.

In more detail

Since React 19, function components receive ref as a normal prop, so forwardRef is no longer needed in new code and will be deprecated. You will still see it in older code and libraries.

Related terms

Taught in

References