missing word: of (#5669)

This commit is contained in:
Laube
2023-03-17 19:28:31 -04:00
committed by GitHub
parent c2164d5131
commit 9f929d3195

View File

@@ -454,7 +454,7 @@ function Button({ onClick, children }) {
}
```
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.
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.
If you rely on propagation and it's difficult to trace which handlers execute and why, try this approach instead.