Enable react strict mode

This commit is contained in:
Bill Thornton
2022-10-18 00:18:54 -04:00
parent 786c1afe12
commit f4bc67a076
+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')
);