Skip to content

Commit

Permalink
Change BrowserRouter to HashRouter
Browse files Browse the repository at this point in the history
  • Loading branch information
Respirayson committed Mar 8, 2024
1 parent db17df4 commit b2d3aa8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.jsx';
import './index.css';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';

ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<BrowserRouter basename={
import.meta.env.DEV ? '/' : '/comclub-website-2024/'
}>
<HashRouter>
<App />
</BrowserRouter>
</HashRouter>
</React.StrictMode>,
);

0 comments on commit b2d3aa8

Please sign in to comment.