Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/Linen-dev/linen.dev
/ isBrowser
Function
isBrowser
apps/web/hooks/useMedia.ts:3–5 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
1
import
{ useEffect, useState } from
'react'
;
2
3
function
isBrowser() {
4
return
typeof window !==
'undefined'
;
5
}
6
7
export
const
useMedia = <T>(
8
queries: string[],
Callers
1
useMedia
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected