Keycloak
1import "@patternfly/react-core/dist/styles/base.css";
2import "@patternfly/patternfly/patternfly-addons.css";
3
4import { StrictMode } from "react";
5import { createRoot } from "react-dom/client";
6import { createHashRouter, RouterProvider } from "react-router-dom";
7
8import { i18n } from "./i18n/i18n";
9import { initKeycloak } from "./keycloak";
10import { RootRoute } from "./routes";
11
12import "./index.css";
13
14// Initialize required components before rendering app.
15await initKeycloak();
16await i18n.init();
17
18const router = createHashRouter([RootRoute]);
19const container = document.getElementById("app");
20const root = createRoot(container!);
21
22root.render(
23<StrictMode>
24<RouterProvider router={router} />
25</StrictMode>,
26);
27