A simple to use library that provides useResize hook for React that returns the width and height of the screen and viewport.
import useSwipe from '@quintenkasteel/useresize'
const reSize = useResize()
width: String
Get the width of the viewport in pixels.
height: Number
Get the height of the viewport in pixels.
screenWidth: Number
Get the width of the screen.
screenHeight: Number
Get the height of the screen.