Check out example codes for "html button with link". It will help you in understanding the concepts better.

Code Example 1

<!-- if you are on Window : --> 
<button onclick="window.location.href='page2.html'">

<!-- if you are on linux or macOS : -->
<button onclick="location.href='page2.html'">

Code Example 2

<a href="">
  <button>Go to Google</button>

Code Example 3

<form action="">
    <input type="submit" value="Go to Google" />

Code Example 4

  onclick="document.location='default.asp'">HTML Tutorial</button>

Code Example 5

<a href="" class="btn btn-primary">Go to Google</a>

Code Example 6

<button><a href='' alt='Broken Link'>This is a button</a></button>

Learn ReactJs, React Native from