MCPcopy Create free account
hub / github.com/code100x/daily-code / updateScreenSize

Function updateScreenSize

apps/web/components/TrackPreview.tsx:26–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24 const [isMediumOrLarger, setIsMediumOrLarger] = useState(false);
25
26 const updateScreenSize = () => {
27 setIsMediumOrLarger(window.innerWidth >= 768);
28 };
29
30 useEffect(() => {
31 updateScreenSize(); // Set the initial state

Callers 1

TrackPreviewFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected