-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathApp.js
35 lines (31 loc) · 1.11 KB
/
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
32
33
34
35
import './App.css';
import { BrowserRouter, Routes, Route } from 'react-router-dom';
import Layout from './components/Layout';
import Products from './views/Productos';
import Home from './views/Home';
import DetalleProd from './components/detalleProd';
import { ContextProvider } from './Context';
import QuienesSomos from './views/QuienesSomos';
import Carrito from './views/Carrito';
import Contacto from './views/Contacto';
function App() {
return (
<div className='App'>
<ContextProvider>
<BrowserRouter>
<Routes>
<Route path="/" element={<Layout />}>
<Route index path="/" element={<Home />} />
<Route path="/products" element={<Products />} />
<Route path="/detalle/:id" element={<DetalleProd />} />
<Route path="quienes-somos" element={<QuienesSomos />} />
<Route path="carrito-de-compras" element={<Carrito />} />
<Route path="/contacto" element={<Contacto />} />
</Route>
</Routes>
</BrowserRouter>
</ContextProvider>
</div>
);
}
export default App;