@rooks/use-boundingclientrect-ref
Version:
A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked.
13 lines (11 loc) • 202 B
JSON
A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked.