button like link code example
Example 1: html button with link
<a href="https://www.google.com">
<button>Go to Google</button>
</a>
Example 2: button with href
onClick={() => {window.location.href="https://www.golfballs.com/"}}
<a href="https://www.google.com">
<button>Go to Google</button>
</a>
onClick={() => {window.location.href="https://www.golfballs.com/"}}