MCPcopy Create free account
hub / github.com/BetaSu/big-react / App

Function App

demos/context/main.tsx:7–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5const ctxB = createContext('default B');
6
7function App() {
8 return (
9 <ctxA.Provider value={'A0'}>
10 <ctxB.Provider value={'B0'}>
11 <ctxA.Provider value={'A1'}>
12 <Cpn />
13 </ctxA.Provider>
14 </ctxB.Provider>
15 <Cpn />
16 </ctxA.Provider>
17 );
18}
19
20function Cpn() {
21 const a = useContext(ctxA);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected