MCPcopy Create free account
hub / github.com/ReactTraining/react-media / SingleQuery

Function SingleQuery

typeTest.tsx:8–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 */
7
8export function SingleQuery() {
9 return (
10 <Media query="min-width: 300px" defaultMatches={true}>
11 {matches => matches && <div>it works</div>}
12 </Media>
13 );
14}
15
16export function MultiQuery() {
17 return (

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…