mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
18 lines
496 B
TypeScript
18 lines
496 B
TypeScript
// Copyright 2024, Command Line Inc.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import * as React from "react";
|
|
import { createRoot } from "react-dom/client";
|
|
import { App } from "./app.tsx";
|
|
|
|
import "./public/style.less";
|
|
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
let reactElem = React.createElement(App, null, null);
|
|
let elem = document.getElementById("main");
|
|
let root = createRoot(elem);
|
|
document.fonts.ready.then(() => {
|
|
root.render(reactElem);
|
|
});
|
|
});
|