79261108

Date: 2024-12-07 18:10:36
Score: 0.5
Natty:
Report link

Svelte needs instruction that data can be bound and may be reactive in the child-to-parent direction. This can be accomplished by using the $bindable() rune.

type Props = {
  data: PageData;
};

let { data = $bindable() }: Props = $props();

<input bind:value={data.product.name} />
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Amanda