Skip to content

Commit d345655

Browse files
authored
Merge pull request #16 from grayhatdevelopers/demo
fix: Replace BrowserRouter with HashRouter for improved routing in main
2 parents 9de1413 + 8c7791e commit d345655

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/src/main.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from "react";
22
import ReactDOM from "react-dom";
3-
import { BrowserRouter } from "react-router-dom";
3+
import { HashRouter } from "react-router-dom";
44
import App from "./App";
55
import "./index.css";
66

@@ -14,9 +14,9 @@ if (redirect) {
1414

1515
ReactDOM.render(
1616
<React.StrictMode>
17-
<BrowserRouter basename="/react-hook-form-ai/">
17+
<HashRouter>
1818
<App />
19-
</BrowserRouter>
19+
</HashRouter>
2020
</React.StrictMode>,
2121
document.getElementById("root")
2222
);

0 commit comments

Comments
 (0)