From 60024effa8acd102e326a020dd8354f0b39d05a8 Mon Sep 17 00:00:00 2001 From: Simon Dao Date: Mon, 11 Jul 2022 18:11:23 -0500 Subject: [PATCH] [docs] update intro sentence of reactive declarations tutorial (#7467) --- .../tutorial/02-reactivity/02-reactive-declarations/text.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/site/content/tutorial/02-reactivity/02-reactive-declarations/text.md b/site/content/tutorial/02-reactivity/02-reactive-declarations/text.md index 027a91a44a..bfc58f1ebe 100644 --- a/site/content/tutorial/02-reactivity/02-reactive-declarations/text.md +++ b/site/content/tutorial/02-reactivity/02-reactive-declarations/text.md @@ -2,9 +2,7 @@ title: Declarations --- -Svelte automatically updates the DOM when your component's state changes. Often, some parts of a component's state need to be computed from *other* parts (such as a `fullname` derived from a `firstname` and a `lastname`), and recomputed whenever they change. - -For these, we have *reactive declarations*. They look like this: +Svelte's reactivity not only keeps the DOM in sync with your application's variables as shown in the previous section, it can also keep variables in sync with each other using reactive declarations. They look like this: ```js let count = 0;