Check out example codes for "tabs to other pages html". It will help you in understanding the concepts better.

Code Example 1

<!-- Tab links -->
<div class="tab">
  <button class="tablinks" onclick="openCity(event, 
  'London')">London</button>
  <button class="tablinks" onclick="openCity(event, 
  'Paris')">Paris</button>
  <button class="tablinks" onclick="openCity(event, 
  'Tokyo')">Tokyo</button>

</div>

<!-- Tab content -->
<div id="London" class="tabcontent">
  <h3>London</h3>
  
<p>London is the capital city of England.</p>
</div>

<div 
id="Paris" class="tabcontent">
  <h3>Paris</h3>
  <p>Paris 
is the capital of France.</p> 
</div>

<div id="Tokyo" class="tabcontent">
  
<h3>Tokyo</h3>
  <p>Tokyo is the capital of Japan.</p>
</div>

Learn ReactJs, React Native from akashmittal.com