# `useSize` React sensor hook that tracks size of an HTML element. ## Usage ```jsx import { useMeasure } from "react-use"; const Demo = () => { const [ref, { width, height }] = useSize(); return (
width: {width}
height: {height}
); }; ``` ## Related hooks - [useSize](./useSize.md)