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