1.1.0 • Published 4 months ago
@acusti/use-bounding-client-rect v1.1.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.