Update 11_events.md

pull/399/head
Abhishek Pawar 2 years ago committed by GitHub
parent 8b41cd49c3
commit 21e060ecd2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -62,7 +62,7 @@ In React, it is slightly different
```js
import React from 'react'
// if it is functional components
// if it is a functional component
const App = () => {
const greetPeople = () => {
alert('Welcome to 30 Days Of React Challenge')
@ -73,7 +73,7 @@ const App = () => {
```js
import React, { Component } from 'react'
// if it is functional components
// if it's a class based component
class App extends Component {
greetPeople = () => {
alert('Welcome to 30 Days Of React Challenge')

Loading…
Cancel
Save