Question · Svelte and SvelteKit course · Module 4: Props and Events
Context API or Props
When should you use the Context API instead of props?
Answer options
- Always - Context is better than props
- When you have deeply nested components (prop drilling)
- Only for user data
- Context doesn't exist in Svelte
You can check the correct answer by solving this task in the CodeWorlds game.