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

Function BbbProvider

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

Source from the content-addressed store, hash-verified

36};
37
38const BbbProvider: FC<PropsWithChildren> = ({ children }) => {
39 const [bbb, setBbb] = useState(0);
40
41 return (
42 <bbbContext.Provider
43 value={{
44 bbb,
45 setBbb
46 }}
47 >
48 {children}
49 </bbbContext.Provider>
50 );
51};
52
53const App = () => (
54 <AaaProvider>

Callers

nothing calls this directly

Calls 1

useStateFunction · 0.90

Tested by

no test coverage detected