Closed
Description
https://svelte-5-preview.vercel.app/docs/breaking-changes#components-are-no-longer-classes
App.svelte
import { writable } from 'svelte/store';
import { mount } from 'svelte';
import Modal, { bind } from 'svelte-simple-modal';
import Popup from './Popup.svelte';
const modal = writable(null);
const showModal = () => modal.set(bind(Popup, { message: "It's a modal!" }));
</script>
<Modal show={$modal}>
<button onclick={showModal}>Show modal</button>
</Modal>
Popup.svelte
<script>
export let message = 'Hi';
</script>
<p>🎉 {message} 🍾</p>
Metadata
Assignees
Labels
No labels