The useRef hook: What is it and what does it do?

The useRef hook is a powerful hook that is somewhat difficult to understand and has a narrow use case. Being able to know when and how to use it will potentially unlock significant performance gains within your app if used correctly.