DEV Community

Discussion on: Today I learned - React refs

Collapse
 
kethmars profile image
kethmars • Edited

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.