how to open link from onclick in react js code example Example: react open url with button window.open(newPageUrl, "_blank")