Svelte · Senior · Question 70 of 75
How does Svelte handle bind:value between a parent $state and a child $bindable prop?
- ✓Correct answer: The child reads and writes the parent's state through the binding; without
bind:the prop is one-way and the child only gets the value - 2Values are copied twice on each change
- 3Binding works only for primitives
Explanation
Explicit two-way contracts make it obvious which components may change which state.