Event handlers are passed an instance of SyntheticEvent in React. In this video we'll take a look at the wide range of events available to us, including Touch events.
class App extends React.Component { constructor(){ super(); this.state = {currentEvent: '---'} this.update = this.update.bind(this) } update(e){ this.setState({currentEvent: e.type}) } render(){ return () }}ReactDOM.render({ this.state.currentEvent}
, document.getElementById('root'));