React JS useRef

Here’s an example of using useRef to store a reference to a DOM element: Output: