Video details

Svelte Question - How to pass Svelte component through props?


How to use pass Svelte component through props?
You can pass string / element / component through React props,
but you can't do it for Svelte!
Elements within attribute is not a valid HTML syntax nor Svelte syntax!
However, in Svelte, you can have named slots, and named slots allow you to pass in different types of content.
🎧 Svelte Tutorial for Beginners 🎧 Svelte Question Time 🔗 Stack Overflow Question
Related Resources Svelte Svelte REPL
🥰 Support me
Want to learn more from me? Check out these links:

Twitter: Blog: Newsletter:
#svelte #sveltequestiontime
Thanks for watching 🥰 -- with love, Li Hau