useWindowSize
Tracks and returns the current window size.
useWindowSize
Installation
Usage
API
useWindowSize
Custom hook that tracks and returns the current window size.
Returns
| Name | Type | Description |
|---|---|---|
| width | WindowSize | The current width of the window. |
| height | WindowSize | The current height of the window. |