import './style.css'; import { h, Component, render } from 'https://esm.sh/preact'; import htm from 'https://esm.sh/htm'; // 为 Preact 初始化 htm const html = htm.bind(h); function App (props) { return html`
`; } render(html`<${App} />`, document.body);