Core/demo/demo.tsx

12 lines
284 B
TypeScript
Raw Normal View History

2024-06-08 23:52:26 +02:00
import React from "react";
import {createRoot} from "react-dom/client";
import {DemoApp} from "./DemoApp";
document.addEventListener("DOMContentLoaded", () => {
const demoApp = document.getElementById("demo-app");
const root = createRoot(demoApp);
root.render(<DemoApp />);
});