react-use-sizes
v1.0.8
Published
Listens for window dimensions and provides these values via React Hook
Downloads
3
Readme
react-use-sizes
Listens for window dimensions and provides these values via React Hook
installation
npm i react-use-sizes
usage
const { windowSize:{ width, height } } = useSizes()
width
- contains window.innerWidth valueheight
- contains window.innerHeight value