svelte/test/js/samples/initial-context/input.svelte

7 lines
118 B

<script>
let foo;
function unreferenced () {
foo = 1;
}
</script>
<button on:click={() => foo = 2}></button>