run multiple function in 1 on click react\ code example
Example: react js onclick call two functions
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>
<a href="#" onClick={() => { func1(); func2();}}>Test Link</a>