Commit ef2d98b
authored
Update part1c.md
I have added a direct quote from react documentation about the naming convention for event handlers and props. The course has mixed up the naming convention of the handlers and the props.
handlers should start with "handle", e.g. handleButtonClick
props should start with "on", e.g. onButtonClick
the course has suggested calling a prop handleClick
where as it should start with on and perhaps rather than just a plane onClick have something that indicates what is being clicked to differentiate it from html buttons onClick attribute
i havent changed the usage of this as it is spread throughout the whole section and i may make a more serious mistake than just getting a naming convention wrong.1 parent dbc1cfb commit ef2d98b
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
629 | 629 | | |
630 | 630 | | |
631 | 631 | | |
632 | | - | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
633 | 636 | | |
634 | 637 | | |
635 | 638 | | |
| |||
0 commit comments