use-window-resize
v0.0.6
Published
This hook allows you to get the window width and height.
Downloads
14
Maintainers
Readme
React useWindowResize Hook
This hook allows you to get the window width and height.
Installation
With npm
npm i use-window-resize
With yarn
yarn add use-window-resize
Example
const Component = () => {
const { width, height } = useWindowResize();
// ..
};