use-element-fit (npm): useElementFit is a React hook that allows you to measure and element's based on certain restraints, similar to object-fit in CSS.
Keywords: resize-observer|object-fit|background-size