Skip to content

Commit 22bba14

Browse files
committed
Remove redundant spaces in responding-to-events.md
1 parent 69edd84 commit 22bba14

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/learn/responding-to-events.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ button { margin-right: 10px; }
6262
6363
</Sandpack>
6464
65-
You defined the `handleClick` function and then [passed it as a prop](/learn/passing-props-to-a-component) to `<button>`. `handleClick` is an **event handler.** Event handler functions:
65+
You defined the `handleClick` function and then [passed it as a prop](/learn/passing-props-to-a-component) to `<button>`. `handleClick` is an **event handler.** Event handler functions:
6666
6767
* Are usually defined *inside* your components.
6868
* Have names that start with `handle`, followed by the name of the event.
@@ -433,7 +433,7 @@ In rare cases, you might need to catch all events on child elements, *even if th
433433
</div>
434434
```
435435
436-
Each event propagates in three phases:
436+
Each event propagates in three phases:
437437
438438
1. It travels down, calling all `onClickCapture` handlers.
439439
2. It runs the clicked element's `onClick` handler.
@@ -514,7 +514,7 @@ button { margin-left: 5px; }
514514
Don't confuse `e.stopPropagation()` and `e.preventDefault()`. They are both useful, but are unrelated:
515515
516516
* [`e.stopPropagation()`](https://developer.mozilla.org/docs/Web/API/Event/stopPropagation) stops the event handlers attached to the tags above from firing.
517-
* [`e.preventDefault()` ](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) prevents the default browser behavior for the few events that have it.
517+
* [`e.preventDefault()`](https://developer.mozilla.org/docs/Web/API/Event/preventDefault) prevents the default browser behavior for the few events that have it.
518518
519519
## Can event handlers have side effects? {/*can-event-handlers-have-side-effects*/}
520520

0 commit comments

Comments
 (0)