React JS Onclick Call две функции
<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>
);
}
}