Skip to content

Commit c81d519

Browse files
committed
feat: update router type
1 parent caeb57f commit c81d519

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"build": "react-scripts build",
2525
"test": "react-scripts test",
2626
"eject": "react-scripts eject",
27-
"predeploy": "npm run build",
27+
"predeploy": "yarn run build",
2828
"deploy": "gh-pages -d build"
2929
},
3030
"eslintConfig": {

src/index.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ import ReactDOM from "react-dom";
33
import "./index.css";
44
import App from "./App";
55
import reportWebVitals from "./reportWebVitals";
6-
import { BrowserRouter } from "react-router-dom";
6+
import { HashRouter } from "react-router-dom";
77

88
ReactDOM.render(
99
<React.StrictMode>
10-
<BrowserRouter>
10+
<HashRouter>
1111
<App />
12-
</BrowserRouter>
12+
</HashRouter>
1313
</React.StrictMode>,
1414
document.getElementById("root")
1515
);

0 commit comments

Comments
 (0)