{
yield html`<my-counter></my-counter>`
function Counter() {
const [count, setCount] = haunted.useState(0);
return haunted.html`
<div id="count">${count}</div>
<button type="button" @click=${() => setCount(count + 1)}>
Increment
</button>
`;
}
customElements.define('my-counter', haunted.component(Counter));
}