how to call two function in onclick react code example
Example 1: react js onclick call two functions
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
Example 2: onclick multiple functions react
class Test extends React.Component {
onClick(event) {
func1();
func2();
}
render() {
return (
<a href="#" onClick={this.onClick}>Test Link</a>
);
}
}