Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

onclick multiple functions react

class Test extends React.Component {
   onClick(event) {
      func1();
      func2();
   }
   render() {
      return (
         <a href="#" onClick={this.onClick}>Test Link</a>
      );
   }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #onclick #multiple #functions #react
ADD COMMENT
Topic
Name
2+7 =