Update text.md

pull/7467/head
Ben McCann 4 years ago committed by GitHub
parent 726a97a16b
commit 9a8cf8965d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -2,9 +2,7 @@
title: Declarations 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. 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:
For these, we have *reactive declarations*. They look like this:
```js ```js
let count = 0; let count = 0;

Loading…
Cancel
Save