Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Svelte 5 examples #202

Merged
merged 3 commits into from
Nov 15, 2023
Merged

Update Svelte 5 examples #202

merged 3 commits into from
Nov 15, 2023

Conversation

TheOnlyTails
Copy link
Contributor

@TheOnlyTails TheOnlyTails commented Nov 13, 2023

This PR updates some of the Svelte 5 examples to reflect some changes made since the original Svelte 5 announcements:

  • Components are now functions instead of classes, and so require the new mount function to be rendered.
  • The on: directive and createEventDispatcher are now deprecated in favor of using regular callback props (similarly to React)
  • Slots are deprecated in favor of snippets: a new way to create reusable markup and pass it down to components.

Please let me know if I missed anything or if something needs to be updated to better fit Svelte 5's intended use!

Closes #201

@matschik matschik merged commit 02b5a0f into matschik:main Nov 15, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update the Svelte 5 examples to use the new snippets and event props
4 participants