<script>
	export let foo;
</script>

<button on:click='{() => console.log(foo)}'>click me</button>