I have part of a React Component that looks like this:
<div onClick={() => handleTriggerParent()}>
<button type='button' onClick={() => handleTriggerChildren()}>
Children
</button>
</div>
I want to ignore handleTriggerParent()
method when handleTriggerChildren()
method is triggered.
What's the best way to achieve this?