12 lines
284 B
TypeScript
12 lines
284 B
TypeScript
|
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 />);
|
||
|
});
|