You can also use window.open()
The open() method of the Window interface loads a specified resource
into a new or existing browsing context (that is, a tab, a window, or
an iframe) under a specified name.
Parameters:
url: a string indicating the URL or path of the resource to be loaded. If an empty string ("") is specified or this parameter is omitted, a blank page is opened into the targeted browsing context.
target (optional): a string, without whitespace, specifying the name of the browsing context the resource is being loaded into. If the name doesn't identify an existing context, a new context is created and given the specified name. The special target keywords, _self, _blank, _parent, and _top, can also be used.
Example
Once you click the card the external link will open on a new tab.
const url = 'https://www.test.com'
function Card(){
return(
<div
className='card-wrapper'
onClick={() => window.open(url, '_blank')}
>
<span>Some content here</span>
</div>
)
}