# use-window-resize-value

> A simple React hook that returns the value of the window on resize

Latest version **1.0.1** (published 2020-04-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install use-window-resize-value
pnpm add use-window-resize-value
yarn add use-window-resize-value
bun add use-window-resize-value
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-04-27 |
| First published | 2020-04-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 580.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | TheLeePriest |
| Maintainers | leepriest |

## Links

- npm: https://www.npmjs.com/package/use-window-resize-value
- Repository: https://github.com/TheLeePriest/use-window-resize-value
- Homepage: https://github.com/TheLeePriest/use-window-resize-value#readme
- Issues: https://github.com/TheLeePriest/use-window-resize-value/issues
- npm.io page: https://npm.io/package/use-window-resize-value

## Recent versions

- 1.0.1 (latest) — 2020-04-27
- 1.0.0 — 2020-04-19

## README

# use-window-resize-value

A simple React hook that returns the pixel value of the window width on resize.

[![NPM](https://img.shields.io/npm/v/use-window-resize-value.svg)](https://www.npmjs.com/package/use-window-resize-value) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

## Install

```bash
npm install --save use-window-resize-value
```

## Usage

```jsx
import React from 'react'
import { useWindowResizeValue } from 'use-window-resize-value'

const App = () => {
  const windowWidth = useWindowResizeValue()
  return <h1>The current width of the window is: {windowWidth}px</h1>
}

export default App
```

## License

MIT © [TheLeePriest](https://github.com/TheLeePriest)

---

This hook is created using [create-react-hook](https://github.com/hermanya/create-react-hook).

---
_Source: https://npm.io/package/use-window-resize-value · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
