Introduction to React JS
Reactjs Events with Examples
React has the same events as HTML: click, change, mouseover etc.
import React from 'react'; class Football extends React.Component { shoot() { alert("Great Shot!"); } render() { return ( <button onClick={this.shoot}>Take the shot!</button> ); } } export default Football;