Skip to content

Commit ae8684f

Browse files
authored
Update text.md
1 parent d8e625c commit ae8684f

File tree

1 file changed

+1
-1
lines changed
  • site/content/tutorial/02-reactivity/02-reactive-declarations

1 file changed

+1
-1
lines changed

site/content/tutorial/02-reactivity/02-reactive-declarations/text.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ let count = 0;
1111
$: doubled = count * 2;
1212
```
1313

14-
> 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).
14+
> 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.
1515
1616
Let's use `doubled` in our markup:
1717

0 commit comments

Comments
 (0)