1
/
of
1
Xianyi Liang - svelte #react #webdev
Xianyi Liang - svelte #react #webdev
Props, or properties, in Svelte are used to pass data from parent components to child
How to actually pass Svelte component through props? ✨❓ Svelte Question Time ❓✨ You have a
svelte pass props to slot Luckily, Svelte makes binding components extremely intuitive All we have to do is go into our parent component where the ShoppingCart component is being used
svelte check if slot is empty Interactive example Svelte apps
Regular
price
192.00 ₹ INR
Regular
price
192.00 ₹ INR
Sale
price
192.00 ₹ INR
Unit price
/
per
Share
![svelte pass props to slot](10079.jpg)