2.0.1 • Published 5 months ago
@acusti/use-bounding-client-rect v2.0.1
@acusti/use-bounding-client-rect
useBoundingClientRect
is a React hook that returns the
boundingClientRect
for the passed in HTMLElement and uses
ResizeObserver
to update the return value and trigger a new render when
the HTMLElement’s boundingClientRect
changes.