Skip to content

Commit e4b9a0e

Browse files
authored
Merge pull request #3269 from colinleefish/patch-1
A possible typo in part1c.md
2 parents fa83db1 + d6f563f commit e4b9a0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/1/en/part1c.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@ const Button = (props) => {
729729
730730
We can use destructuring to get only the required fields from <i>props</i>, and use the more compact form of arrow functions:
731731
732-
**NB**: While building your own components, you can name their event handler props anyway you like, for this you can refer to the react's documnetion on [Naming event handler props](https://react.dev/learn/responding-to-events#naming-event-handler-props). It goes as following:
732+
**NB**: While building your own components, you can name their event handler props anyway you like, for this you can refer to the react's documentation on [Naming event handler props](https://react.dev/learn/responding-to-events#naming-event-handler-props). It goes as following:
733733
734734
> By convention, event handler props should start with `on`, followed by a capital letter.
735735
For example, the Button component’s `onClick` prop could have been called `onSmash`:

0 commit comments

Comments
 (0)