aqs/packages/ui/components/MyCounterButton.svelte
2024-03-19 20:11:01 +08:00

12 lines
155 B
Svelte

<script lang="ts">
let count = 0;
function handleClick() {
count += 1;
}
</script>
<button on:click={handleClick}>
clicks: {count}
</button>