Question · Svelte and SvelteKit course · Module 3: Reactivity and Runes
Replacing export let in Svelte 5
What is the Svelte 5 equivalent of the old 'export let name'?
Answer options
- let { name } = $state()
- let { name } = $props()
- let name = $prop()
- export let name = $state()
You can check the correct answer by solving this task in the CodeWorlds game.