docs: props destructuring is reactive

pull/16901/head
Hyunbin Seo 3 weeks ago committed by GitHub
parent acdd93053d
commit 8b42d42cdd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -35,6 +35,8 @@ On the other side, inside `MyComponent.svelte`, we can receive props with the `$
<p>this component is {+++adjective+++}</p>
```
> [!NOTE] If you use destructuring with a `$props` declaration, the resulting variables will all be reactive.
## Fallback values
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`):

Loading…
Cancel
Save