Svelte · Junior · Question 41 of 76
What is context in Svelte for?
- ✓Correct answer: Passing values from a parent to any descendant without drilling props through every level
- 2Storing data in
localStorage - 3Sharing state between browser tabs
Explanation
Context is scoped to the component tree, which also keeps it safe from leaking between users during SSR.