Initial commit
This commit is contained in:
parent
22532b67ea
commit
518d381447
76 changed files with 11799 additions and 2 deletions
16
src/index.tsx
Normal file
16
src/index.tsx
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import { createRoot } from "react-dom/client";
|
||||
import { StrictMode, lazy, Suspense } from "react";
|
||||
import { kcContext } from "./KcApp/kcContext";
|
||||
|
||||
const App = lazy(() => import("./App"));
|
||||
const KcApp = lazy(() => import("./KcApp"));
|
||||
|
||||
if (kcContext !== undefined) {
|
||||
console.log(kcContext);
|
||||
}
|
||||
|
||||
createRoot(document.getElementById("root")!).render(
|
||||
<StrictMode>
|
||||
<Suspense>{kcContext === undefined ? <App /> : <KcApp kcContext={kcContext} />}</Suspense>
|
||||
</StrictMode>,
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue