[docs] update intro sentence of reactive declarations tutorial (#7467)

pull/7679/head
Simon Dao 2 years ago committed by GitHub
parent 1913e7fad7
commit 60024effa8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;

Loading…
Cancel
Save