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 ReactDom from "react-dom";
|
||||
import React, { StrictMode } from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
import i18n from "./i18n";
|
||||
|
||||
import init from "./context/auth/keycloak";
|
||||
|
@ -8,8 +8,10 @@ import { KeycloakAdminConsole } from "./KeycloakAdminConsole";
|
|||
console.info("supported languages", ...i18n.languages);
|
||||
|
||||
init().then((adminClient) => {
|
||||
ReactDom.render(
|
||||
<KeycloakAdminConsole adminClient={adminClient} />,
|
||||
ReactDOM.render(
|
||||
<StrictMode>
|
||||
<KeycloakAdminConsole adminClient={adminClient} />
|
||||
</StrictMode>,
|
||||
document.getElementById("app")
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue