Skip to content

Commit d9996df

Browse files
authored
Merge pull request #4153 from ianmcl/patch-1
Update part1c.md
2 parents 74f5416 + 1fcc7c8 commit d9996df

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
@@ -631,7 +631,7 @@ Since we now have an easily reusable <i>Button</i> component, we've also impleme
631631
The event handler is passed to the <i>Button</i> component through the _onClick_ prop. When creating your own components, you can theoretically choose the prop name freely. However, our naming choice for the event handler was not entirely arbitrary.
632632
633633
React's own official [tutorial](https://react.dev/learn/tutorial-tic-tac-toe) suggests:
634-
"In React, it’s conventional to use _onSomething_ names for props which take functions which handle events and handleSomething for the actual function definitions which handle those events."
634+
"In React, it’s conventional to use _onSomething_ names for props which take functions which handle events and _handleSomething_ for the actual function definitions which handle those events."
635635
636636
### Changes in state cause re-rendering
637637

0 commit comments

Comments
 (0)