MCPcopy Create free account
hub / github.com/QuarkGluonPlasma/react-course-code / Aaa

Function Aaa

context-trap/src/App2.tsx:62–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60);
61
62const Aaa = () => {
63 const { aaa, setAaa } = useContext(aaaContext);
64
65 console.log('Aaa render...')
66
67 return <div>
68 aaa: {aaa}
69 <button onClick={() => setAaa(aaa + 1)}>加一</button>
70 </div>;
71};
72
73const Bbb = () => {
74 const { bbb, setBbb } = useContext(bbbContext);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected