background icons
background icons 2

Video Belajar

Tonton dan pelajari berbagai topik menarik melalui video pembelajaran eksklusif dari Channel lihautan.

lihautan

2370

Svelte Tutorial for Beginners - Recreate elements and components when value changes with {#key}

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 https://svelte.dev/repl/9dc9fa03d81a49fcad3cd1d3649aa0ca?version=3.37.0
💻 REPL https://svelte.dev/repl/d754be2713254512aaf23774f8de6e7e?version=3.37.0

🎧 Svelte Tutorial for Beginners https://www.youtube.com/playlist?list=PLoKaNN3BjQX3mxDEVG3oGJx2ByXnue_gR

📚 Related Resources
Svelte https://svelte.dev
Svelte REPL https://svelte.dev/repl

🥰 Support me https://www.buymeacoffee.com/lihautan

🔗 Want to learn more from me? Check out these links:

Twitter: https://twitter.com/lihautan
Blog: https://lihautan.com/
Newsletter: https://lihautan.com/newsletter

#svelte #sveltetutorial #sveltebeginner

Thanks for watching 🥰 -- with love, Li Hau