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