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

Function AaaProvider

context-trap/src/App2.tsx:23–36  ·  view source on GitHub ↗
({ children })

Source from the content-addressed store, hash-verified

21});
22
23const AaaProvider: FC<PropsWithChildren> = ({ children }) => {
24 const [aaa, setAaa] = useState(0);
25
26 return (
27 <aaaContext.Provider
28 value={{
29 aaa,
30 setAaa
31 }}
32 >
33 {children}
34 </aaaContext.Provider>
35 );
36};
37
38const BbbProvider: FC<PropsWithChildren> = ({ children }) => {
39 const [bbb, setBbb] = useState(0);

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected