Svelte 2 vs 3: Cheat Sheet
This guide is a cheat sheet for upgrading to
Svelte 3. It
doesn't cover everything, but it should get you started!
PRs welcome at
the GitHub repository
action-identifier
Actions are functions that are called when an element is created. They can return an object with a destroy method that is called after the element is unmounted:
Svelte 2
Svelte 3
action-inline
Actions are functions that are called when an element is created. They can return an object with a destroy method that is called after the element is unmounted: