-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.jsx
More file actions
35 lines (33 loc) · 1.34 KB
/
App.jsx
File metadata and controls
35 lines (33 loc) · 1.34 KB
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 React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Navbar from './components/Navbar';
import Home from './pages/Home';
import BubbleSort from './algorithms/BubbleSort';
import QuickSort from './algorithms/QuickSort';
import MergeSort from './algorithms/MergeSort';
import Resources from './components/Resources';
import Factorial from './pages/Factorial';
import InsertionSort from './algorithms/InsertionSort';
import SelectionSort from './algorithms/SelectionSort';
import Fibonacci from './pages/Fibonacci';
import CaesarCipher from './algorithms/CaesarCipher';
function App() {
return (
<Router>
<Navbar />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/bubble-sort" element={<BubbleSort />} />
<Route path="/quick-sort" element={<QuickSort />} />
<Route path="/merge-sort" element={<MergeSort />} />
<Route path="/resources" element={<Resources />} />
<Route path="/factorial" element={<Factorial />} />
<Route path="/insertion-sort" element={<InsertionSort />} />
<Route path="/selection-sort" element={<SelectionSort />} />
<Route path="/fibonacci" element={<Fibonacci />} />
<Route path="/caesar-cipher" element={<CaesarCipher />} />
</Routes>
</Router>
);
}
export default App;