Svelte Passing Props - Svelte Tutorial 3.1
WebJeda
Svelte props is a way to pass data down to child components. Passing data to child elements is pretty easy in Svelte but the declaration can be confusing for beginners.
REPL: https://svelte.dev/repl/81a8a8e204f048169152bf6e6e0b15b7?version=3.31.2
export let variable is something we have not seen anywhere that is used to get props. Svelte does it this way and it becomes a second nature once you start using it in your svelte projects.
In this video I'm going to show how Svelte props can be used to pass data form a parent component to child element and then to a gran child component. ... https://www.youtube.com/watch?v=As5mUka7COw
2021-08-27
0.0 LBC
Copyrighted (contact publisher)
18846740 Bytes