useWindowWidth
A hook that returns the current window width in pixels.
Import
import { useWindowWidth } from '@krakentech/utils';Usage
const windowWidth = useWindowWidth();Returns
| Type | Description | Example |
|---|---|---|
number | The pixel value of the current window width | 760 |
Last updated on