Skip to content

Latest commit

 

History

History

react-use-viewport-size

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

React viewport size hook

A hook which returns the dimensions of the viewport (window inner height and width). This hook uses the requestAnimationFrame function to throttle updates.

const { height, width } = useViewportSize();