Question · Svelte and SvelteKit course · Module 3: Reactivity and Runes
Mutations with $state
What is true about $state in Svelte 5?
Answer options
- Array and object mutations do NOT work
- Array and object mutations work automatically
- You need to use special methods for mutations
- $state only works with primitives
You can check the correct answer by solving this task in the CodeWorlds game.