mirror of
https://github.com/kou029w/_.git
synced 2025-04-13 00:06:24 +00:00
9 lines
189 B
Svelte
9 lines
189 B
Svelte
<script>
|
|
let count = 0;
|
|
</script>
|
|
|
|
<div class="counter">
|
|
<button on:click={() => count--}> - </button>
|
|
<strong>{count}</strong>
|
|
<button on:click={() => count++}> + </button>
|
|
</div>
|