How to actually pass Svelte component through props?
How to actually pass Svelte component through props?
✨❓ Svelte Question Time ❓✨
“You have a Svelte question, I have an answer“ 😱😍
In the last video, , some of you are unimpressed with my take on passing component through props is to use named slots.
Well, you are right! That’s no passing component through props, it’s more of passing element through props.
In this video, we are going to explore how we can actually pass Svelte component through props.
Introduction 00:00
We will start with a React component 01:07
Observing how it’s done in React, and we are going to convert it to a Svelte component
Converting React component to Svelte component 05:39
Using svelte:component 08:32
Svelte event listener on:input, instead of React’s onChange 11:12
You can’t spread event listeners in Svelte 13:38
Spreading attributes through $$restProps 15:03
Use component event for the dynamic Svelte component 16:38
Use props value binding for dynamic Svelte component 20:42
Summary 27:44
---
🎧
1 view
507
144
2 weeks ago 00:05:17 1
The Ultimate Email Extractor in 2024: YellowPages Scraper 🌎
2 weeks ago 00:03:55 1
Pokemon GO Joystick, Teleport, Auto Walk - How to Get Pokemon GO Spoofer iOS & Android 2024 FREE
2 weeks ago 00:12:05 1
ZenBusiness Review 2024: What Makes It Stand Out?
2 weeks ago 00:04:14 1
Paramore: Decode [OFFICIAL VIDEO]
2 weeks ago 02:01:18 1
Half-Life 2: 20th Anniversary Documentary
2 weeks ago 00:36:24 2
Best of the Worst Trivia!
2 weeks ago 00:03:07 1
Delta Executor iOS iPhone Android NO KEY - Roblox Script Executor Mobile NEW UPDATE 2024
2 weeks ago 00:03:04 1
Bach, Organ Sonata No. 4 in E minor (BWV 528) 3. Un poco Allegro.
2 weeks ago 00:04:49 1
Play To Earn🔥This New Play to Earn Game is About to Make a Lot of People RICH
2 weeks ago 00:03:04 1
Arena Of Valor Hack - How to Get Unlimited Vouchers! iOS Android