useWindowWidth

This hook simply returns the current width of the window. A useful alternative for the useMediaQ hook in the case of more complex logic.

Values

width:

The current width of the relative window