1
Fork 0
today/source/setup.tsx

14 lines
342 B
TypeScript
Raw Normal View History

2023-05-30 10:10:17 +00:00
import {render} from "preact";
import "modern-normalize/modern-normalize.css";
import "./global.scss";
import {App} from "./app.js";
if ($dev) {
await import("./date/date.test.js");
}
const preactRoot = document.createElement("div");
preactRoot.classList.add("preact-root");
document.body.append(preactRoot);
render(<App />, preactRoot);