🔗 React Refs — Direct Access to DOM & Component Values
In React, we normally interact with UI using state and props.But sometimes, you need to directly access a DOM element — like focusing an input, playing a video, or reading an element’s width.
This is where Refs come into play.
In this Hasenode-style ...
sagar404.hashnode.dev3 min read