How is useRef different from using 'ref' with class components?
In class components, ref is a special attribute used to reference DOM elements or React components. You create a ref in the constructor, attach it to the element, and then manipulate it using the ref object. ReactJS useRef is a hook in functional components for referencing DOM elements or other valu