How to Use React Refs
How to utilise refs in React, with ref forwarding, callback refs and HOCs
React Refs are a useful feature that act as a means to reference a DOM element or a class component from within a parent component. This then give us a means to read and modify that element.
Perhaps the best way to describe a ref is as a bridge; a bridge that allows a component…