Svelte · Junior · Question 66 of 76

Which syntax is legacy (Svelte 4) and should be avoided in new code?

Explanation

Their replacements: $props, $derived/$effect, onclick and snippets with {@render}.

Further reading

Problem with a question

Svelte · Junior · question 66

Test yourself

Take the Svelte · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz