Counter = ({ initialCount = 0 }) => {
const [count, setCount] = React.useState(initialCount);
return htm`
<div style=${ { padding: 50 } }>
<div style=${ { fontSize: 50, color: "var(--counter-color)" }}>
${count}
</div>
<button onClick=${ () => setCount(count + 1) }>
Add 1
</button>
</div>
`
}