aqs/packages/ui/components/MyCounterButton.svelte

12 lines
155 B
Svelte
Raw Normal View History

2024-03-19 12:11:01 +00:00
<script lang="ts">
let count = 0;
function handleClick() {
count += 1;
}
</script>
<button on:click={handleClick}>
clicks: {count}
</button>