Provides an element ref and the bounding client rect for that element.
Optional
The dependency array used for the useEffect hook to update the bounding client rect.
useEffect
T Typeparam for the ref object.
Provides an element ref and the bounding client rect for that element.