Skip to content

Commit 6a13db2

Browse files
Switch to the HashRouter for compatiblity with GitHub Pages
1 parent f8b7269 commit 6a13db2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/App.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { BrowserRouter } from 'react-router-dom';
1+
import { HashRouter } from 'react-router-dom';
22

33
import SchemaProvider from './SchemaContext';
44
import SchemaView from './SchemaView';
55

66
function App() {
77
return (
88
<div className="App">
9-
<BrowserRouter>
9+
<HashRouter>
1010
<SchemaProvider>
1111
<SchemaView />
1212
</SchemaProvider>
13-
</BrowserRouter>
13+
</HashRouter>
1414
</div>
1515
);
1616
}

0 commit comments

Comments
 (0)