-
Notifications
You must be signed in to change notification settings - Fork 0
/
App.js
29 lines (26 loc) · 970 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
import { BrowserRouter, Routes, Route } from "react-router-dom";
import "./App.scss";
import Header from "./components/Header/Header";
import Footer from "./components/Footer/Footer";
import Home from "./components/Home/Home";
import Category from "./components/Category/Category";
import SingleProduct from "./components/SingleProduct/SingleProduct";
import Newsletter from "./components/Footer/Newsletter/Newsletter";
import AppContext from "./utils/context";
function App() {
return (
<BrowserRouter>
<AppContext>
<Header />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/category/:id" element={<Category />} />
<Route path="/product/:id" element={<SingleProduct />} />
</Routes>
<Newsletter />
<Footer />
</AppContext>
</BrowserRouter>
);
}
export default App;