Update text.md

pull/7738/head
Rich Harris 6 years ago committed by GitHub
parent 581bb6c17a
commit 27bd979a79

@ -11,7 +11,7 @@ let count = 0;
$: doubled = count * 2;
```
> Don't worry if this looks unfamiliar. It's valid JavaScript, which Svelte interprets to mean 're-run this code whenever any of the referenced values change'. Once you get used to it, there's no going back. For those that are curious, `$:` is [label syntax](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label).
> Don't worry if this looks a little alien. It's [valid](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label) (if unconventional) JavaScript, which Svelte interprets to mean 're-run this code whenever any of the referenced values change'. Once you get used to it, there's no going back.
Let's use `doubled` in our markup:

Loading…
Cancel
Save