I haven't tested it myself, but I have my doubts. From sources:
useRef returns a mutable ref object whose .current property is initialized to the passed argument (initialValue). The returned object will persist for the full lifetime of the component.
Tested, you are right. It looks like they talk about the object itself, but do not guarantee that it will be persisted in .current. Well, good to know.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I haven't tested it myself, but I have my doubts. From sources:
Tested, you are right. It looks like they talk about the object itself, but do not guarantee that it will be persisted in
.current
. Well, good to know.