how to call multiple component in react js on button click 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>
);
}
}