Skip to main content

Hook useWindowSize

Arguments

ArgumentsTypeMeaning
---
---



Return

ElementTypeMeaning
screenWidthnumberScreen width
screenHeightnumberScreen height



Example

const { screenWidth, screenHeight } = useWindowSize()