To link to external URL, we can set the to
prop to an object with the pathname
property set to the external URL we go to when the link is clicked.
For instance, we write
<Link to={{ pathname: "https://example.com" }} target="_blank" />
to set the to
prop to { pathname: "https://example.com" }
to go to https://example.com
when we click on the link.
Also, we set target
to _blank
so that the link opens a new tab when we click it.