Introduction
Default actions let you add behavior to HTML elements easily in Svelte. They help you run code when elements are created or removed.
You want to focus an input automatically when it appears.
You need to add a tooltip or popup to an element.
You want to listen to events or modify elements without extra code in your component.
You want to clean up event listeners or timers when an element is removed.