svelte/test/runtime/samples/self-reference/main.html

4 lines
78 B

<span>{depth}</span>
{#if depth > 0}
<svelte:self depth='{depth - 1}'/>
{/if}