npm install preact-browser-bundle<div id="app"></div><script type="module"> import { html, render, signal } from "https://cdn.jsdelivr.net/npm/preact-browser-bundle/dist/standalone.js"; const count = signal(0); function App() { return html` <div> <h1>Hello World!</h1> <button onClick=${() => (count.value += 1)}> Increment with signal </button> <p>Counter: ${count.value}</p> </div> `; } render(html`<${App} />`, document.getElementById("app"));</script>