Svelte 101: Recreate elements and components when value changes with {#key} block

Sometimes, we do want to recreate elements and components when a value of an expression change and we do that with the {#key} block. Do we? In this video, I am going to show you 2 examples, of why you would want to do that, and how {#key} block make it so easy to recreate elements and components when you need it. --- 💻 REPL 💻 REPL 📚 Related Resources Svelte Svelte REPL 🥰 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