Enable Strict Mode for React (#846)
This commit is contained in:
parent
eaeebdc242
commit
9cb973f188
1 changed files with 6 additions and 4 deletions
|
@ -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")
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue