pull/16901/merge
Hyunbin Seo 14 hours ago committed by GitHub
commit 1c414f3bdc
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