React: Using Refs with the useRef Hook

Implementing Refs in React with hooks, with example use cases

Refs in React give us a means of storing mutable values throughout a component’s lifecycle, and are often used for interacting with the DOM without the need of re-rendering a component. In…