Update 11_events.md

pull/335/head
krishna 2 years ago committed by GitHub
parent 8b41cd49c3
commit 93a07e85c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -100,7 +100,8 @@ However, in React it could be as follows:
import React, { Component } from 'react' import React, { Component } from 'react'
// if it is functional components // if it is functional components
class App extends Component { class App extends Component {
handleClick = () => { handleClick = (e) => {
e.preventDefault()
alert('Welcome to 30 Days Of React Challenge') alert('Welcome to 30 Days Of React Challenge')
} }
render() { render() {

Loading…
Cancel
Save