0.0.4 • Published 4 years ago

@quintenkasteel/useresize v0.0.4

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

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: 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.

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago