Skip to content

Commit 9f929d3

Browse files
authored
missing word: of (#5669)
1 parent c2164d5 commit 9f929d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ function Button({ onClick, children }) {
454454
}
455455
```
456456
457-
You could add more code to this handler before calling the parent `onClick` event handler, too. This pattern provides an *alternative* to propagation. It lets the child component handle the event, while also letting the parent component specify some additional behavior. Unlike propagation, it's not automatic. But the benefit of this pattern is that you can clearly follow the whole chain code that executes as a result of some event.
457+
You could add more code to this handler before calling the parent `onClick` event handler, too. This pattern provides an *alternative* to propagation. It lets the child component handle the event, while also letting the parent component specify some additional behavior. Unlike propagation, it's not automatic. But the benefit of this pattern is that you can clearly follow the whole chain of code that executes as a result of some event.
458458
459459
If you rely on propagation and it's difficult to trace which handlers execute and why, try this approach instead.
460460

0 commit comments

Comments
 (0)