Svelte · Junior · Question 66 of 76
Which syntax is legacy (Svelte 4) and should be avoided in new code?
- ✓Correct answer:
export let,$:statements,on:clickand<slot> - 2
$state,$derivedand$props - 3
{#if}and{#each}blocks
Explanation
Their replacements: $props, $derived/$effect, onclick and snippets with {@render}.