use-window-resize-value
A simple React hook that returns the pixel value of the window width on resize.
Install
npm install --save use-window-resize-value
Usage
import React from 'react'import useWindowResizeValue from 'use-window-resize-value' const App = const windowWidth = return <h1>The current width of the window is: windowWidthpx</h1>
License
MIT © TheLeePriest
This hook is created using create-react-hook.