From 9a8cf8965d1cecfdbe3f865d6a9e3df65288dfc6 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Tue, 17 May 2022 09:49:11 -0700 Subject: [PATCH] Update text.md --- .../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 bdb84dfed6..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 depends on *other* parts. For example, you may want to have `fullname` derived from `firstname` and `lastname` and also want to recompute `fullname` when `firstname` and/or `lastname` changes. - -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;