button href js code example
Example 1: html button with href
<form method="get" action="/page2">
<button type="submit">Continue</button>
</form>
Example 2: button with href
onClick={() => {window.location.href="https://www.golfballs.com/"}}
<form method="get" action="/page2">
<button type="submit">Continue</button>
</form>
onClick={() => {window.location.href="https://www.golfballs.com/"}}