JSFiddle - React, Tailwind, and code Playground
HTML
<button id="anchorID" >Go to page</button>
JavaScript
$("#anchorID").click(function() {
window.open(
'http://www.w3schools.com',
'_blank' // <- This is what makes it open in a new window.
);
});