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

Function Aaa

context-trap/src/App.tsx:42–51  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40);
41
42const Aaa = () => {
43 const { aaa, setAaa } = useContext(context);
44
45 console.log('Aaa render...')
46
47 return <div>
48 aaa: {aaa}
49 <button onClick={() => setAaa(aaa + 1)}>加一</button>
50 </div>;
51};
52
53const Bbb = () => {
54 const { bbb, setBbb } = useContext(context);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected