mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-22 16:48:23 +01:00
19 lines
524 B
TypeScript
19 lines
524 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/app";
|
|
import { loadFonts } from "./util/fontutil";
|
|
|
|
loadFonts();
|
|
|
|
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);
|
|
});
|
|
});
|