Svelte 30 🧡 Custom Event Handler Delegation via Props Callbacks
In legacy Svelte, custom events were handled by the createEventDispatcher function, an implicit mechanism that relied on event bubbling and a custom API to communicate from child components to parents. While effective, it suffered from “magic” behavior—it was difficult to trace events through a component tree, and it lacked robust TypeScript support. Svelte 5 moves…