Svelte 101: Keyed {#each} block

Let’s have a deeper discussion about the {#each} block. How does Svelte updates the element or component when the array in the {#each} block changed? By default, when you add / remove / modify the array in the {#each}, it will add / remove items from the end of the list. You can change that with a keyed {#each} block. --- 💻 REPL 📚 Related Resources Svelte Svelte REPL Svelte Tutorial: Keyed Each blocks 🥰 Support me 🔗 Want to learn more from me? Check out these links: Twitter: Blog: Newsletter: #svelte #svelte101 Thanks for watching 🥰 -- with love, Li Hau
Back to Top