Check out example codes for "on click in a tag". It will help you in understanding the concepts better.

Code Example 1

<a onclick='newwin()'>Anchor</a>

Learn ReactJs, React Native from akashmittal.com