How to use React.useRef hook
According to the React docs:
useRef is a React Hook that lets you reference a value that’s not needed for rendering.
Here are two examples where useRef should be used:
Referencing a value with a ref
Manipulating the DOM with a ref
Referencing a...
blog.thecallum.com2 min read