Event Handling in React
From Logic Wiki
Revision as of 15:23, 12 July 2018 by AliIybar (Talk | contribs) (Created page with "Category:React in the class switchNameHandler = () => { console.log('clicked'); } render(){ return ( <button onClick={this.switchNameHandler}>Swit...")
in the class
switchNameHandler = () => {
console.log('clicked');
}
render(){
return (
<button onClick={this.switchNameHandler}>Switch Name</button>