@rooks/use-boundingclientrect-ref

A hook that tracks the boundingclientrect of an element. It returns a callbackRef so that the element node if changed is easily tracked.

Browse on unpkg