Myvideo

Guest

Login

How to pass Svelte component through props

Uploaded By: Myvideo
1 view
0
0 votes
0

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,

Share with your friends

Link:

Embed:

Video Size:

Custom size:

x

Add to Playlist:

Favorites
My Playlist
Watch Later