Skip to content

Commit

Permalink
Enable strict mode 🏒.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmarty committed May 23, 2024
1 parent 0963c36 commit 9c0aaa9
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { StrictMode } from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import App from './App';
Expand All @@ -8,9 +9,11 @@ const basename =

const root = createRoot(document.body);
root.render(
<BrowserRouter basename={basename}>
<App />
</BrowserRouter>,
<StrictMode>
<BrowserRouter basename={basename}>
<App />
</BrowserRouter>
</StrictMode>,
);

setColourTheme(localStorage.getItem('theme'));
Expand Down

0 comments on commit 9c0aaa9

Please sign in to comment.