open link in new window onclick react code example
Example 1: open a new tab when clicking on a link react
<td onClick={()=> window.open("someLink", "_blank")}>text</td>
Example 2: react open url with button
window.open(newPageUrl, "_blank")
<td onClick={()=> window.open("someLink", "_blank")}>text</td>
window.open(newPageUrl, "_blank")