@quintenkasteel/useresize
v0.0.4
Published
A simple to use library that provides useSwipe hook for React that enables swipe gestures for touch screens.
Maintainers
Readme
Getting Started with UseResize
A simple to use library that provides useResize hook for React that returns the width and height of the screen and viewport.
Usage
import useSwipe from '@quintenkasteel/useresize'
const reSize = useResize()
Return Values
width: StringGet the width of the viewport in pixels.
height: NumberGet the height of the viewport in pixels.
screenWidth: NumberGet the width of the screen.
screenHeight: NumberGet the height of the screen.
