MCPcopy Create free account
hub / github.com/CodeWithHarry/Sigma-Web-Dev-Course / App

Function App

Video 116/src/App.jsx:8–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6import { counterContext } from './context/context'
7
8function App() {
9 const [count, setCount] = useState(0)
10
11 return (
12 <>
13 <counterContext.Provider value={{count, setCount}}>
14 <Navbar/>
15 <div>
16 <a href="https://vitejs.dev" target="_blank">
17 <img src={viteLogo} className="logo" alt="Vite logo" />
18 </a>
19 <a href="https://react.dev" target="_blank">
20 <img src={reactLogo} className="logo react" alt="React logo" />
21 </a>
22 </div>
23 <h1>Vite + React</h1>
24 <div className="card">
25 <button onClick={() => setCount((count) => count + 1)}>
26 count is {count}
27 </button>
28 <p>
29 Edit <code>src/App.jsx</code> and save to test HMR
30 </p>
31 </div>
32 <p className="read-the-docs">
33 Click on the Vite and React logos to learn more
34 </p>
35 </counterContext.Provider>
36 </>
37 )
38}
39
40export default App

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected