Skip to content

quintenkasteel/useresize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published