-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
34 lines (32 loc) · 874 Bytes
/
App.js
File metadata and controls
34 lines (32 loc) · 874 Bytes
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
import React from 'react';
import './App.css';
import {
BrowserRouter as Router,
Switch,
Route
} from "react-router-dom";
import Home from './components/Home';
import SunglassesPreview from './components/SunglassesPreview';
import ClothesPreview from './components/ClothesPreview';
import Products from './components/products'; // Import the Products component
function App() {
return (
<Router>
<Switch>
<Route path="/try/cloth">
<ClothesPreview/>
</Route>
<Route path="/try/sunglasses">
<SunglassesPreview/>
</Route>
<Route path="/products"> {/* Add this Route for Products page */}
<Products/>
</Route>
<Route path="/">
<Home/>
</Route>
</Switch>
</Router>
);
}
export default App;