Question · Svelte and SvelteKit course · Module 4: Props and Events
Sending Events in Svelte 5
What is the preferred way to send events in Svelte 5?
Answer options
- createEventDispatcher()
- Callback props (functions passed as props)
- $emit()
- this.dispatchEvent()
You can check the correct answer by solving this task in the CodeWorlds game.