8 lines
128 B

<script>
// setup code goes here
function sayHello() {}
</script>
<button on:click={sayHello}> Click to say hello </button>