# window-size **Repository Path**: mirrors_FezVrasta/window-size ## Basic Information - **Project Name**: window-size - **Description**: No description available - **Primary Language**: Unknown - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-08-08 - **Last Updated**: 2026-03-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # `@rehooks/window-size` > React hook for subscribing to window size > **Note:** This is using the new [React Hooks API Proposal](https://reactjs.org/docs/hooks-intro.html) > which is subject to change until React 16.7 final. > > You'll need to install `react`, `react-dom`, etc at `^16.7.0-alpha.0` ## Install ```sh yarn add @rehooks/window-size ``` ## Usage ```js import useWindowSize from '@rehooks/window-size'; function MyComponent() { let windowSize = useWindowSize(); // { // innerWidth: window.innerWidth, // innerHeight: window.innerHeight, // outerWidth: window.outerWidth, // outerHeight: window.outerHeight, // } // ... } ```