From 8b42d42cddfc3e218edacd9de8506b10b01bb801 Mon Sep 17 00:00:00 2001 From: Hyunbin Seo <47051820+hyunbinseo@users.noreply.github.com> Date: Mon, 6 Oct 2025 21:30:59 +0900 Subject: [PATCH] docs: props destructuring is reactive --- documentation/docs/02-runes/05-$props.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation/docs/02-runes/05-$props.md b/documentation/docs/02-runes/05-$props.md index 222b4831b65a..9eab0edb59ff 100644 --- a/documentation/docs/02-runes/05-$props.md +++ b/documentation/docs/02-runes/05-$props.md @@ -35,6 +35,8 @@ On the other side, inside `MyComponent.svelte`, we can receive props with the `$

this component is {+++adjective+++}

``` +> [!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`):