
<script>
  let count = 0;

  function add() {
		count += 1;
	}

  function subtract() {
		count -= 1;
	}
</script>

<div id="svelte">
	<div class="counter">
		<button on:click={subtract}>-</button>
		<pre>{count}</pre>
		<button on:click={add}>+</button>
	</div>
	<div class="children">Svelte</div>
</div>
