Skip to content

Commit

Permalink
bugfix/routing-refresh-page add HashRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovandriy committed Jul 6, 2023
1 parent a3a2980 commit 3ba0dfb
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
@@ -1,13 +1,13 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import {BrowserRouter} from 'react-router-dom';
import {HashRouter} from 'react-router-dom';

import App from './App';
import './styles.css';

const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
root.render(
<BrowserRouter>
<HashRouter>
<App />
</BrowserRouter>,
</HashRouter>,
);

0 comments on commit 3ba0dfb

Please sign in to comment.