A React hook that tracks the current window dimensions.
This hook listens for the window's resize event and returns an object with the current
width and height of the browser window. It updates automatically whenever the window is resized.
Example
// Usage in a functional component: import { useWindowSize } from"essential-hooks-collection";
A React hook that tracks the current window dimensions.
This hook listens for the window's resize event and returns an object with the current width and height of the browser window. It updates automatically whenever the window is resized.
Example