You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/runtime-runes/samples/unhoist-function-accessing-.../main.svelte

12 lines
159 B

<script>
const log = () => {
console.log(snip);
}
let x = $state(0);
</script>
<button onclick={log}></button>
{#snippet snip()}
snippet {x}
{/snippet}