score:4

Accepted answer

what does the reference mydivelement.current points to exactly

mydivelement.current receives the reference to the underlying dom element

can i say that what i get in mydivelement.current object is one of the type htmlelement

when you assign ref to a div element, mydivelement.current will be of type htmldivelement

mydivelement.current is being initialized with null value. when does that change to the reference of the div? does it happen after 1st render?

during first render, the ref object is being assigned to the domnode when its created. updates to dom node will lead to a change in the object as well


Related Query

More Query from same tag