MCPcopy Create free account
hub / github.com/coderarmy-notes/mern-stack-course / App

Function App

04React/Day10/src/App.jsx:10–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8export const ProductContext = createContext();
9
10function App() {
11
12 // const [count,setCount] = useState(0);
13 const [cartItem, setCartItem] = useState(0);
14
15 return (
16 <>
17 {/* <CounterContext value={{count,setCount}}> */}
18 <ProductContext value={{cartItem,setCartItem}}>
19 <Header />
20 <Body />
21 <Footer/>
22 </ProductContext>
23 {/* </CounterContext> */}
24 </>
25 )
26}
27
28export default App

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected