1.2.0 • Published 9 months ago
@acusti/use-bounding-client-rect v1.2.0
@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.