In Svelte 3 and 4, components were classes, while in Svelte 5, components are functions. This codemod updates the instantiation of Svelte components to use mount or hydrate (imported from svelte), ensuring compatibility with Svelte 5's new functional component model.
Before
jsx
After
jsx