can a button have a url for code example
Example 1: button as href
<button onclick="location.href='http://www.example.com'" type="button">
www.example.com</button>
Example 2: button with href
onClick={() => {window.location.href="https://www.golfballs.com/"}}