<script>
    let count = $state(0);
    function increment() {
        count++;
    }
</script>
<!-- ---cut-start--- -->
<button onclick={increment}>
    Count is: {count}
</button>
<!-- ---cut-end--- -->