/// /// /// /** @jsx h */ import { render, h } from "../preact/mod.tsx"; import { App } from "./App.tsx"; export const setup = () => { const app = document.createElement("div"); const shadowRoot = app.attachShadow({ mode: "open" }); document.body.append(app); render(, shadowRoot); return () => { render(null, shadowRoot); app.remove(); }; };