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

Code Example 1

<button><a href='https://google.com' alt='Broken Link'>This is a button</a></button>

Code Example 2

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

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

Code Example 3

<!DOCTYPE html>
<html>
   <head>
      <title>Title of the document</title>
   </head>
   <body>
      <form>
         <input type="button" onclick="window.location.href = 'https://www.w3docs.com';" value="w3docs"/>
      </form>
   </body>
</html>

Learn ReactJs, React Native from akashmittal.com