useRef or useState, which is better?
Now, how do you decide which one to use? It depends what you plan to do with the entered value.
If you are only interested in it once when the form is submitted, a ref might be better because logging and updating the state value
with every keystroke ...
omarsaade.hashnode.dev3 min read
Developer Avocado
Frontend developer. Debugging this world one console.log() at a time
Great write up 💪 omarsaade