We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bc41c8 commit 404d2a1Copy full SHA for 404d2a1
src/App.tsx
@@ -6,12 +6,12 @@ import Navbar from './pages/Navbar.tsx';
6
import NotFoundPage from './pages/404.tsx';
7
import './styles/main.css';
8
import './App.css';
9
-import { BrowserRouter, Routes, Route } from "react-router-dom";
+import { HashRouter, Routes, Route } from "react-router-dom";
10
11
function App() {
12
13
return (
14
- <BrowserRouter>
+ <HashRouter>
15
<Routes>
16
<Route path="/" element={<Navbar />}>
17
<Route index element={<SortingVisualiser />} />
@@ -22,7 +22,7 @@ function App() {
22
<Route path="*" element={<NotFoundPage />} />
23
</Route>
24
</Routes>
25
- </BrowserRouter>
+ </HashRouter>
26
)
27
}
28
0 commit comments