Check out example codes for "href do nothing". It will help you in understanding the concepts better.

Code Example 1

<a href="javascript:void(0);">link</a>

Learn ReactJs, React Native from akashmittal.com