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

Function App

Video 115/src/App.jsx:9–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { createBrowserRouter, RouterProvider } from 'react-router-dom'
8
9function App() {
10 const router = createBrowserRouter([
11 {
12 path: "/",
13 element: <><Navbar /><Home /></>
14 },
15 {
16 path: "/login",
17 element: <><Navbar /><Login /></>
18 },
19 {
20 path: "/about",
21 element: <><Navbar /><About /></>
22 },
23 {
24 path: "/user/:username",
25 element: <><Navbar /><User /></>
26 },
27 ])
28 return (
29 <>
30
31 <RouterProvider router={router} />
32
33 </>
34 )
35}
36
37export default App

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected