Deprecated
- this useMediaQuery's signature is deprecated, it now accepts an query parameter and an options object.
import { useMediaQuery } from "https://deno.land/x/netzo@0.4.72/deps/usehooks-ts.ts";
Custom hook for tracking the state of a media query.
Examples
const isSmallScreen = useMediaQuery('(max-width: 600px)');
// Use isSmallScreen
to conditionally apply styles or logic based on the screen size.
const isSmallScreen = useMediaQuery('(max-width: 600px)');
// Use isSmallScreen
to conditionally apply styles or logic based on the screen size.