chore: Add React.StrictMode

closes #2177
This commit is contained in:
Tom Moor 2021-06-05 14:59:14 -07:00
parent a19ac6aa5f
commit f517a2cecb
1 changed files with 19 additions and 17 deletions

View File

@ -51,23 +51,25 @@ if ("serviceWorker" in window.navigator) {
if (element) {
const App = () => (
<Provider {...stores}>
<Analytics>
<Theme>
<ErrorBoundary>
<Router history={history}>
<>
<PageTheme />
<ScrollToTop>
<Routes />
</ScrollToTop>
<Toasts />
</>
</Router>
</ErrorBoundary>
</Theme>
</Analytics>
</Provider>
<React.StrictMode>
<Provider {...stores}>
<Analytics>
<Theme>
<ErrorBoundary>
<Router history={history}>
<>
<PageTheme />
<ScrollToTop>
<Routes />
</ScrollToTop>
<Toasts />
</>
</Router>
</ErrorBoundary>
</Theme>
</Analytics>
</Provider>
</React.StrictMode>
);
render(<App />, element);