@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.
4 lines (3 loc) • 85 B
Plain Text
A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked.