188 B · 11 lines · Created 2mo ago Svelte
123456789101112<script> let name = $state('world'); let count = $state(0);</script>
<h1>Hello {name}!</h1>
<input bind:value={name} /><button onclick={() => count += 1}> clicks: {count}</button>
Hello world