useScreen

Custom hook that tracks the screen dimensions and properties.

Usage

import { useScreen } from "@teasim/hooks";
export default function Component() {
const screen = useScreen();
return (
<div>
The current window dimensions are: <code>{JSON.stringify(screen, null, 2)}</code>
</div>
);
}