What is the primary purpose of the useRef hook in React?
useRef returns the same mutable ref object on every render. Its current value can hold a DOM node, timer ID, or other information that does not affect rendering, and changing it does not trigger a re-render.