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='' alt='Broken Link'>This is a button</a></button>

Code Example 2

<!-- 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 3

<!DOCTYPE html>
      <title>Title of the document</title>
         <input type="button" onclick="window.location.href = '';" value="w3docs"/>

Learn ReactJs, React Native from