Check out example codes for "html how to give false link". It will help you in understanding the concepts better.

Code Example 1

<a id="nothing" href="#">Link</a>

Code Example 2

document.getElementById("nothing").addEventListener("click", function(event){
event.preventDefault()
});

Learn ReactJs, React Native from akashmittal.com