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 11import React from 'react' ;
22import './App.css' ;
3- import { BrowserRouter , Routes , Route } from 'react-router-dom' ;
3+ import { HashRouter , Routes , Route } from 'react-router-dom' ;
44import Layout from './pages/Layout' ;
55import Home from './pages/Home' ;
66import MapPage from './pages/MapPage' ;
@@ -9,15 +9,15 @@ import NoPage from './pages/NoPage';
99function App ( ) {
1010 return (
1111 < div className = "App" >
12- < BrowserRouter >
12+ < HashRouter >
1313 < Routes >
1414 < Route path = "/" element = { < Layout /> } >
1515 < Route index element = { < Home /> } />
1616 < Route path = "map" element = { < MapPage /> } />
1717 < Route path = "*" element = { < NoPage /> } />
1818 </ Route >
1919 </ Routes >
20- </ BrowserRouter >
20+ </ HashRouter >
2121 </ div >
2222 ) ;
2323}
You can’t perform that action at this time.
0 commit comments