79191253

Date: 2024-11-15 06:18:09
Score: 0.5
Natty:
Report link

If you're looking for the Svelte 5 version of children, <slot /> has been deprecated and now uses children from the $props() rune.

So for example:

//Error.svelte

<script>
  let { children } = $props();
</script>

<div>
  {@render children?.()}
</div>

See more in the migration docs.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: StanMarsh