Enable Strict Mode for React (#846)

This commit is contained in:
Jon Koops 2021-07-14 14:20:04 +02:00 committed by GitHub
parent eaeebdc242
commit 9cb973f188
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
import React from "react"; import React, { StrictMode } from "react";
import ReactDom from "react-dom"; import ReactDOM from "react-dom";
import i18n from "./i18n"; import i18n from "./i18n";
import init from "./context/auth/keycloak"; import init from "./context/auth/keycloak";
@ -8,8 +8,10 @@ import { KeycloakAdminConsole } from "./KeycloakAdminConsole";
console.info("supported languages", ...i18n.languages); console.info("supported languages", ...i18n.languages);
init().then((adminClient) => { init().then((adminClient) => {
ReactDom.render( ReactDOM.render(
<KeycloakAdminConsole adminClient={adminClient} />, <StrictMode>
<KeycloakAdminConsole adminClient={adminClient} />
</StrictMode>,
document.getElementById("app") document.getElementById("app")
); );
}); });