Updates
This commit is contained in:
21
lowcoder/client/packages/lowcoder-comps/index.tsx
Normal file
21
lowcoder/client/packages/lowcoder-comps/index.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import { createRoot } from "react-dom/client";
|
||||
import { CompIDE } from "lowcoder-sdk";
|
||||
import { name, version, lowcoder } from "./package.json";
|
||||
import compMap from "./src/index";
|
||||
|
||||
import "lowcoder-sdk/dist/style.css";
|
||||
|
||||
function CompDevApp() {
|
||||
return (
|
||||
<CompIDE
|
||||
compMap={compMap}
|
||||
packageName={name}
|
||||
packageVersion={version}
|
||||
compMeta={lowcoder.comps}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
const container = document.querySelector("#root");
|
||||
const root = createRoot(container!);
|
||||
root.render(<CompDevApp />);
|
||||
Reference in New Issue
Block a user