Cleaning up the DOM with ForwardRef in React Blog

added by JavaScript Kicks
11/10/2019 3:48:52 PM

4454 Views

Ref forwarding in React is a feature that lets components pass down ("forward") refs to their children. It gives the child component a reference to a DOM element created by its parent component. This then allows the child to read and modify that element anywhere it is being used.


0 comments