I guess that refs can easily be misused because you shouldn't need DOM access too much in libraries that work like React. But there are times when it makes sense. For example combination with event.target.
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.
Nice, i recommend you, don't use it.
It's literally an "escape hatch" as the React doc the @kethmars linked. (translates to, "don't abuse it" 😉)
One instance you can use is when you want to integrate JS library w/o React version.
Hey Jivko! Thanks for the comment.
Can you elaborate please :) ?
I guess that refs can easily be misused because you shouldn't need DOM access too much in libraries that work like React. But there are times when it makes sense. For example combination with event.target.