The next special element, svelte:element
This svelte special element allows you dynamically render different elements. Similar to svelte:component, this allow you to choose which elements to render, and let svelte replace it for you. You can pass any attributes, event listeners, and they will be applied to the new element.
---
đź’»
REPL https://svelte.dev/repl/9194b08c6be843ed975841f96db503bf?version=3.47.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 Svelte Tutorial svelte:element https://svelte.dev/tutorial/svelte-element How to create dynamic elements https://youtu.be/3MRfdoQzrc0
🥰 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