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

Function App

Video 116/public/without_context_api/App.jsx:7–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected