Components are the way to reuse and compose logics.
We shall take a look on how to use components in a component and how to pass data from a parent component to a child component
Introduction 00:00 Adding a component 00:30 Passing data from parent component to child component 03:22 Default props value 06:10 Spreading props 07:00
---
💻
REPL https://svelte.dev/repl/fc9c2b8e0ea848129d90dee19b8206b0?version=3.35.0
📚
Related Resources Svelte https://svelte.dev Svelte REPL https://svelte.dev/repl Svelte Tutorials: Declaring props https://svelte.dev/tutorial/declaring-props Svelte Tutorials: Default values https://svelte.dev/tutorial/default-values Svelte Tutorials: Spread props https://svelte.dev/tutorial/spread-props
🥰 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 #svelte101
Thanks for watching 🥰 -- with love, Li Hau