Tomas Krivda - coding and web development
Coding and web development<TomasKrivda />
npm create svelte@latest my-app
cd my-app
npm install
npm run dev
To be able to properly change list of child components created/rendered using #each block it is important to create the list with “keys” - a unique identifiers for every item. In the following example (thing.id)
is the key.
{#each things as thing (thing.id)}
<Thing name={thing.name}/>
{/each}
© 2020-2023 Tomas Krivda