Using UseRef hook for form data
An approach of using useRef since useState causes unnecessary rerenders.
Tags: react, reacthooks, webdev, productivity