change to hashrouter to fix github pages
This commit is contained in:
parent
ac593b3e72
commit
36a099db5f
1 changed files with 3 additions and 3 deletions
|
@ -2,12 +2,12 @@ import React from "react"
|
|||
import ReactDOM from "react-dom/client"
|
||||
import App from "./App"
|
||||
import "./index.css"
|
||||
import { BrowserRouter } from "react-router-dom"
|
||||
import { BrowserRouter, HashRouter } from "react-router-dom"
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root")).render(
|
||||
<React.StrictMode>
|
||||
<BrowserRouter>
|
||||
<HashRouter>
|
||||
<App />
|
||||
</BrowserRouter>
|
||||
</HashRouter>
|
||||
</React.StrictMode>
|
||||
)
|
||||
|
|
Reference in a new issue