Merge pull request #4067 from thornbill/react-strict-mode

This commit is contained in:
Bill Thornton
2022-10-18 08:01:34 -04:00
committed by GitHub
+6 -4
View File
@@ -7,7 +7,7 @@ import 'classlist.js';
import 'whatwg-fetch';
import 'resize-observer-polyfill';
import './assets/css/site.scss';
import React from 'react';
import React, { StrictMode } from 'react';
import * as ReactDOM from 'react-dom';
import Events from './utils/events.ts';
import ServerConnections from './components/ServerConnections';
@@ -145,9 +145,11 @@ async function onAppReady() {
await appRouter.start();
ReactDOM.render(
<HistoryRouter history={history}>
<AppRoutes />
</HistoryRouter>,
<StrictMode>
<HistoryRouter history={history}>
<AppRoutes />
</HistoryRouter>
</StrictMode>,
document.getElementById('reactRoot')
);