Kindly correct me if I'm wrong.
() => this.handleClick()
is same as
function callHandleClick(){
return this.handleClick()
}
But the below works.
<input type="submit" onClick={ () => this.handleClick() }/>
But, this doesn't
<input type="submit" onClick={function callHandleClick(){return this.handleClick()}}/>
I have defined the handleClick method. Is it possible to use a normal function instead of arrow function to handle the click event?