Why when calling two functions with onClick event not sent?

When calling two functions using onClick error: "Cannot read property 'preventDefault' of undefined"

onClick={(e) => {onClickFunc(idx, e); handlerChangeTab(idx);}}


onToggleTab = (val, e) => {
e.preventDefault();

 this.setState(() => {
 return {
 activeTab: val
}
})
 };
March 19th 20 at 09:03
1 answer
March 19th 20 at 09:05
Do using handler

onClick={(e) => handleClick(e, idx)}

handleClick(e, idx) {
 onClickFunc(idx, e);
handlerChangeTab(idx);
}

Find more questions by tags ReactJavaScript