Click in order · Svelte and SvelteKit course · Module 4: Props and Events
Props, Context and Stores
When to use each: props (direct), context (deep), global state (stores or .svelte.js)
Items to click
- Context - deep hierarchy
- Props - direct parent-child
- Stores or $state in .svelte.js - global state
You can check the correct answer by solving this task in the CodeWorlds game.