Update site/content/docs/01-component-format.md

Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>
pull/6547/head
Stephane 5 years ago committed by GitHub
parent 3841143dd7
commit 55b081f776
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -95,7 +95,7 @@ To change component state and trigger a re-render, just assign to a locally decl
Update expressions (`count += 1`) and property assignments (`obj.x = y`) have the same effect.
Because Svelte's reactivity is based on assignments, using array methods like `.push()` and `.splice()` won't automatically trigger updates, to trigger the update a subsequent assignment is requirred. This and more details can also be found in the [tutorial](tutorial/updating-arrays-and-objects).
Because Svelte's reactivity is based on assignments, using array methods like `.push()` and `.splice()` won't automatically trigger updates. To trigger the update a subsequent assignment is required. This and more details can also be found in the [tutorial](tutorial/updating-arrays-and-objects).
```sv
<script>

Loading…
Cancel
Save