1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-04-13 00:06:24 +00:00
_/svelte/src/routes/Counter.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>