Check out example codes for "href on a button". 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

<button onclick="window.location.href='/page2'">Continue</button>

Code Example 3

<form method="get" action="/page2">
    <button type="submit">Continue</button>

Code Example 4

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

Learn ReactJs, React Native from