Skip to content

Commit 47cfed0

Browse files
committed
fix: hash routing to defeat github spa routing limitations
1 parent 14eaba5 commit 47cfed0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

2025/src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { StrictMode } from "react";
22
import { createRoot } from "react-dom/client";
3-
import { BrowserRouter } from "react-router-dom";
3+
import { HashRouter } from "react-router-dom";
44
import "./style.scss";
55
import App from "./App.tsx";
66

77
createRoot(document.getElementById("root")!).render(
88
<StrictMode>
9-
<BrowserRouter>
9+
<HashRouter>
1010
<App />
11-
</BrowserRouter>
11+
</HashRouter>
1212
</StrictMode>
1313
);

0 commit comments

Comments
 (0)