Check out example codes for "buton html href". 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>

Learn ReactJs, React Native from akashmittal.com