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...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


in the class

switchNameHandler = () => {
   console.log('clicked');
 }


 render(){
   return (
      <button onClick={this.switchNameHandler}>Switch Name</button>