Answer the question
In order to leave comments, you need to log in
Why does useRef need an object?
Hello, I approached the study of hooks, I would like to learn in detail about why the useRef hook needs an object with the current property? I understand that it stores the value there, but I don’t understand why it is in the current property of the object, I know that it kind of saves from overwriting the value during rendering, could you explain this point to me in more detail? I will be very grateful
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question