Answers for "svelte each"

1

svelte each

<ul>
	{#each cats as { id, name }, i}
		<li><a target="_blank" href="https://www.youtube.com/watch?v={id}">
			{i + 1}: {name}
		</a></li>
	{/each}
</ul>
Posted by: Guest on May-04-2021

Browse Popular Code Answers by Language