-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
31 lines (29 loc) · 1007 Bytes
/
App.js
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
import './App.css';
import Home from './component/Home';
import Navbar from './component/Navbar';
import {Switch, Route } from 'react-router-dom';
import Products from './component/Products';
import Product from './component/Product';
import Cart from './component/Cart';
import About from './component/About';
import Contact from './component/Contact';
import Checkout from './component/Checkout';
import Success from './component/Success';
function App() {
return (
<>
<Navbar />
<Switch>
<Route exact path="/home" component={Home}/>
<Route exact path="/products" component={Products}/>
<Route exact path="/products/:id" component={Product}/>
<Route exact path="/cart" component={Cart}/>
<Route exact path="/about" component={About}/>
<Route exact path="/contact" component={Contact}/>
<Route exact path="/checkout" component={Checkout}/>
<Route exact path="/success" component={Success}/>
</Switch>
</>
);
}
export default App;