Check out example codes for "how to add an html anchor". It will help you in understanding the concepts better.

Code Example 1

<h2 id="Lorem_Ipsum">Lorem Ipsum</h2> <!--The anchor-->
<a href="#Lorem_Ipsum">top</a> <!--Linking to the anchor-->

Learn ReactJs, React Native from akashmittal.com