I have onClick that I want to hit a certain function depending on the following logic:
onClick={ approve && this.handleApproveClick, !approve && !releaseHold && this.handleDeclineClick, releaseHold && this.handleReleaseHoldClick } Oddly enough the last this.handleReleaseHoldClick works, while the others do not. What is the correct way to do this? Or do I really need to create a separate button?