Skip to content

Commit

Permalink
potential fix for GP not supporting SPA
Browse files Browse the repository at this point in the history
  • Loading branch information
ramizwd committed Dec 4, 2023
1 parent c528f4a commit 47b33fd
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/main.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.jsx';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';
import './index.css';
import { ToastContainer } from 'react-toastify';
import 'react-toastify/dist/ReactToastify.css';
Expand All @@ -10,11 +10,10 @@ import './i18n.js';
ReactDOM.createRoot(document.getElementById('root')).render(
<React.StrictMode>
<React.Suspense fallback="loading">
<BrowserRouter>
<HashRouter>
<ToastContainer />
<App />
</BrowserRouter>
</HashRouter>
</React.Suspense>
</React.StrictMode>,
);
// deployment

0 comments on commit 47b33fd

Please sign in to comment.