# `useWindowSize` React sensor hook that tracks dimensions of the browser window. [](https://codesandbox.io/s/m7ln22668) ## Usage ```jsx import {useWindowSize} from 'react-use'; const Demo = () => { const {width, height} = useWindowSize(); return (