# `useMeasure` React sensor hook that reacts to changes in size of any of the observed elements. ## Usage ```jsx import { useMeasure } from "react-use"; const Demo = () => { const [ref, { width, height }] = useMeasure(); return (
width: {width}
height: {height}
); }; ``` ## Related hooks - [useSize](./useSize.md)