File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,14 @@ import Contribute from "./pages/Contribute";
77import DCPage from "./pages/DCPage" ;
88import Projects from "./pages/Projects" ;
99import reportWebVitals from "./tests/reportWebVitals" ;
10- import { BrowserRouter , Routes , Route , Navigate } from "react-router-dom" ;
10+ import { Routes , Route , Navigate , HashRouter } from "react-router-dom" ;
1111
1212const root = ReactDOM . createRoot (
1313 document . getElementById ( "root" ) as HTMLElement
1414) ;
1515
1616root . render (
17- < BrowserRouter >
17+ < HashRouter >
1818 < Routes >
1919 < Route path = "/" element = { < Navigate to = "/about" replace /> } />
2020 < Route path = "/" element = { < App /> } >
@@ -24,7 +24,7 @@ root.render(
2424 < Route path = "/dc" element = { < DCPage /> } />
2525 </ Route >
2626 </ Routes >
27- </ BrowserRouter >
27+ </ HashRouter >
2828) ;
2929
3030// If you want to start measuring performance in your app, pass a function
You can’t perform that action at this time.
0 commit comments