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.
-
Notifications
You must be signed in to change notification settings - Fork 0
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 …
ObaidNadeem/useWindowsize-React-Custom-Hook
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 0
No packages published