I am working in React and I have the following scenario.
<a href={link} variant="primary" onClick={this.onClickDoSomething}>
here.
</a>
Now, I want the onclick to execute before the link has been clicked. However I do not see it happening.
How to work around this issue ? Thanks.