November 2018
Beginner
502 pages
10h 22m
English
All the native JavaScript events are available for us to handle in JSX. JSX allows us to do this with props that call functions. The prop name is derived by prefixing the native event name with on, using camel case. So the prop name for the click event is onClick in JSX.
We need to be able to control what the buttons do in our Confirm component. Follow these steps:
<button className="confirm-ok" onClick={this.handleOkClick}>...</button>
So, we're telling the ...
Read now
Unlock full access