React JS onClick wywołaj dwie funkcje
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
Wild Warbler
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
class Test extends React.Component {
onClick(event) {
func1();
func2();
}
render() {
return (
<a href="#" onClick={this.onClick}>Test Link</a>
);
}
}