# `useSize` React sensor hook that tracks size of an HTML element. ## Usage ```jsx import {useSize} from 'react-use'; const Demo = () => { const [sized, {width, height}] = useSize( ({width}) =>
Size me up! ({width}px)
); return (
{sized}
width: {width}
height: {height}
); }; ```