Skip to content

Commit c9c3617

Browse files
Use HashRouter for GitHub Pages
1 parent b495391 commit c9c3617

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main.jsx

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

77
ReactDOM.createRoot(document.getElementById('root')).render(
8-
<BrowserRouter>
8+
<HashRouter>
99
<App />
10-
</BrowserRouter>
11-
)
10+
</HashRouter>
11+
)

0 commit comments

Comments
 (0)