use-window-resize

0.0.6 • Public • Published

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();
  // ..
};

Package Sidebar

Install

npm i use-window-resize

Weekly Downloads

6

Version

0.0.6

License

ISC

Unpacked Size

9.36 kB

Total Files

8

Last publish

Collaborators

  • theruler007