Skip to content

Commit 8b42d42

Browse files
authored
docs: props destructuring is reactive
1 parent acdd930 commit 8b42d42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

documentation/docs/02-runes/05-$props.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ On the other side, inside `MyComponent.svelte`, we can receive props with the `$
3535
<p>this component is {+++adjective+++}</p>
3636
```
3737

38+
> [!NOTE] If you use destructuring with a `$props` declaration, the resulting variables will all be reactive.
39+
3840
## Fallback values
3941

4042
Destructuring allows us to declare fallback values, which are used if the parent component does not set a given prop (or the value is `undefined`):

0 commit comments

Comments
 (0)