0.0.6 • Published 3 years ago
use-window-resize v0.0.6
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();
// ..
};