React JS OnClick Llame a dos funciones
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
Wild Warbler
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
onClick={(event) => { func1(event); func2();}}
class Test extends React.Component {
onClick(event) {
func1();
func2();
}
render() {
return (
<a href="#" onClick={this.onClick}>Test Link</a>
);
}
}