This commit is contained in:
parent
28d5fba430
commit
2e9615f32a
|
@ -92,10 +92,9 @@ mv src/KcApp/* src/
|
||||||
|
|
||||||
cat << EOF > src/index.tsx
|
cat << EOF > src/index.tsx
|
||||||
import { createRoot } from "react-dom/client";
|
import { createRoot } from "react-dom/client";
|
||||||
import { StrictMode, lazy } from "react";
|
import { StrictMode } from "react";
|
||||||
import { kcContext } from "./kcContext";
|
import { kcContext } from "./kcContext";
|
||||||
|
import KcApp from "KcApp";
|
||||||
const KcApp = lazy(() => import("./KcApp"));
|
|
||||||
|
|
||||||
if( kcContext === undefined ){
|
if( kcContext === undefined ){
|
||||||
throw new Error(
|
throw new Error(
|
||||||
|
|
Loading…
Reference in a new issue