Skip to content

Commit bf03719

Browse files
Marat5Rich-Harris
andauthored
fix: diff highlighting for specific example in tutorial (#1148)
* Fix diff highlighting for specific example * Update apps/svelte.dev/content/tutorial/01-svelte/05-events/04-component-events/index.md * drive-by fix * revert this bit --------- Co-authored-by: Rich Harris <[email protected]> Co-authored-by: Rich Harris <[email protected]>
1 parent f06b95e commit bf03719

File tree

1 file changed

+2
-1
lines changed
  • apps/svelte.dev/content/tutorial/01-svelte/05-events/04-component-events

1 file changed

+2
-1
lines changed

apps/svelte.dev/content/tutorial/01-svelte/05-events/04-component-events/index.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ You can pass event handlers to components like any other prop. In `Stepper.svelt
77
```svelte
88
/// file: Stepper.svelte
99
<script>
10-
let { +++increment, decrement+++ } = $props();
10+
let +++{ increment, decrement }+++ = $props();
1111
</script>
1212
```
1313

@@ -22,6 +22,7 @@ You can pass event handlers to components like any other prop. In `Stepper.svelt
2222
In `App.svelte`, define the handlers:
2323

2424
```svelte
25+
/// file: App.svelte
2526
<Stepper
2627
+++increment={() => value += 1}+++
2728
+++decrement={() => value -= 1}+++

0 commit comments

Comments
 (0)