Skip to content

Commit 6373fc6

Browse files
authored
docs: edit instruction for Store Bindings (sveltejs#488)
Edited instruction to 'add button' to 'add event handler', to reflect the true diff in the code. (The button already exists; the highlighted part is the event handler)
1 parent 6584bed commit 6373fc6

File tree

1 file changed

+1
-1
lines changed
  • content/tutorial/01-svelte/08-stores/06-store-bindings

1 file changed

+1
-1
lines changed

content/tutorial/01-svelte/08-stores/06-store-bindings/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ In this example we're exporting a writable store `name` and a derived store `gre
1313

1414
Changing the input value will now update `name` and all its dependents.
1515

16-
We can also assign directly to store values inside a component. Add a `<button>` element after the `<input>`:
16+
We can also assign directly to store values inside a component. Add an `on:click` event handler to update `name`:
1717

1818
```svelte
1919
/// file: App.svelte

0 commit comments

Comments
 (0)