MCPcopy
hub / github.com/yocontra/react-responsive / getDevice

Function getDevice

src/useMediaQuery.ts:44–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42): Partial<MediaQueryAllQueryable> | undefined => {
43 const deviceFromContext = useContext(Context)
44 const getDevice = () =>
45 hyphenateKeys(deviceFromProps) || hyphenateKeys(deviceFromContext)
46 const [device, setDevice] = useState(getDevice)
47
48 useEffect(() => {

Callers 1

useDeviceFunction · 0.85

Calls 1

hyphenateKeysFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…