Events

Handling React Events

Handling React Events is not too dissimilar to using pure JavaScript on DOM elements.
For click events, a camel-cased onClick attribute is used as opposed to the standard onclick.
In addition, the value within onClick uses the JSX syntax and is not a string.
This can be written within a React component class like …