Skip to content

Commit

Permalink
switch to the HashRouter to be able to handle page refresh
Browse files Browse the repository at this point in the history
  • Loading branch information
Mopolo committed Feb 8, 2022
1 parent 56afaa5 commit 940410a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ import React from 'react';
import ReactDOM from 'react-dom';
import 'bootstrap/dist/css/bootstrap.min.css';
import App from './App';
import {BrowserRouter} from "react-router-dom";
import {HashRouter} from "react-router-dom";

ReactDOM.render(
<React.StrictMode>
<BrowserRouter>
<HashRouter>
<App/>
</BrowserRouter>
</HashRouter>
</React.StrictMode>,
document.getElementById('root')
);

0 comments on commit 940410a

Please sign in to comment.