Svelte Passing Props - Svelte Tutorial 3.1

Опубликовано: 20 Май 2026
на канале: WebJeda
1,169
33

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/81a8a8e204f04...

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.