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/test/runtime/samples/before-render-chain/List.svelte

14 lines
198 B

<script>
import Item from './Item.svelte';
export let items = [3, 2, 1];
export function update() {
items = [1, 2, 3, 4, 5];
}
</script>
{#each items as item}
<Item item={item} />
{/each}