-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.jsx
53 lines (29 loc) · 1.01 KB
/
App.jsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import {createBrowserRouter,RouterProvider}from 'react-router-dom';
import React from 'react';
import Layout from './Components/Layout/Layout';
import Home from'./Components/Home/Home';
import Shop from './Components/Shop/Shop';
import About from './Components/About/About';
import Contact from './Components/Contact/Contact';
import Cart from './Components/Cart/Cart';
import Product from './Components/Product';
import Cartsidebar from './Components/Cart/Cartsidebar';
import Checkout from './Components/Contact/Checkout';
let routes=createBrowserRouter([{
path:"",element:<Layout/>,children:[
{path:"Home",element:<Home/>},
{path:"Shop",element:<Shop/>},
{path:"Product",element:<Product/>},
{path:"About",element:<About/>},
{path:"Contact",element:<Contact/>},
{path:"Cart",element:<Cart/>},
{path:"Cartsidebar",element:<Cartsidebar/>},
{path:"Checkout",element:<Checkout/>},
]
}])
function App() {
return (<div>
<RouterProvider router={routes}></RouterProvider>
</div>)
}
export default App;