░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/.trash/client/src/hooks
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: useMobile.tsx
import * as React from "react"; const MOBILE_BREAKPOINT = 768; export function useIsMobile() { const [isMobile, setIsMobile] = React.useState<boolean | undefined>( undefined ); React.useEffect(() => { const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`); const onChange = () => { setIsMobile(window.innerWidth < MOBILE_BREAKPOINT); }; mql.addEventListener("change", onChange); setIsMobile(window.innerWidth < MOBILE_BREAKPOINT); return () => mql.removeEventListener("change", onChange); }, []); return !!isMobile; }
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 useComposition.ts
TS
2.3 KB
2026-11-06 12:30
EDIT
📄 useMobile.tsx
TSX
584 B
2026-11-06 12:30
EDIT
📄 usePersistFn.ts
TS
471 B
2026-11-06 12:30
EDIT