Skip to content

In certain conditions like absolutely positioned elements sometimes don't respond to viewport width & height, this hook is very much useful in those cases. It watches the height and width of the screen & updates the values in the state likewise. useWindowsize is a react js custom hook which can be used to get the current height and width of the …

Notifications You must be signed in to change notification settings

ObaidNadeem/useWindowsize-React-Custom-Hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

useWindowsize

CODE IN MASTER BRANCH

useWindowsize is a react js custom hook which can be used to get the current height and width of the window when vw & vh are not working. In certain conditions like absolutely positioned elements sometimes don't respond to viewport width & height, this hook is very much useful in those cases. It watches the height and width of the screen & updates the values in the state likewise.

About

In certain conditions like absolutely positioned elements sometimes don't respond to viewport width & height, this hook is very much useful in those cases. It watches the height and width of the screen & updates the values in the state likewise. useWindowsize is a react js custom hook which can be used to get the current height and width of the …

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published