parent
4804be7899
commit
7052774a29
4 changed files with 595 additions and 516 deletions
@ -0,0 +1,11 @@ |
|||||||
|
# Events |
||||||
|
|
||||||
|
Handling events with React elements is very similar to handling events on DOM elements. There are some syntax differences: |
||||||
|
|
||||||
|
* React events are named using camelCase, rather than lowercase. |
||||||
|
* With JSX you pass a function as the event handler, rather than a string. |
||||||
|
|
||||||
|
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||||
|
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://reactjs.org/docs/handling-events.html'>Handling Events in React</BadgeLink> |
||||||
|
<BadgeLink colorScheme='blue' badgeText='Official Docs' href='https://reactjs.org/docs/events.html'>Synthetic Events in React</BadgeLink> |
||||||
|
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.robinwieruch.de/react-event-handler/'>React Event Handler</BadgeLink> |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue