@ -2,6 +2,8 @@
let { a, arr } = $props();
</script>
<text x="0" y=14>outside blocks</text>
{#if a}
{@const tag = "test"}
<text x="0" y="26">A {tag}</text>
@ -18,8 +18,7 @@
<text x="0" y="26">not A</text>
{/if}
</svg>
{#each arr as item, idx}
<text x={idx * 10} y={42}>{item}</text>
{/each}