DEV Community

Discussion on: useRef or useState, which is better?

 
lexlohr profile image
Alex Lohr

You have still failed to show why they would have a headache. Also, I would trust even beginners to be able to see that a useRef method is already available, so they wouldn't have to create their own and therefore recognize that this example was meant to illustrate the difference between useState and useRef and not more.

Thread Thread
 
salehmubashar profile image
Saleh Mubashar

by headache i meant 1) it may be overwhelming to new learners. 2) I am sure I conveyed my point in the post while trying to stay as simple as possible and lastly neither is better, its just about usage

Some comments have been hidden by the post's author - find out more