JSFiddle - React, Tailwind, and code Playground
HTML
<button id="open">open</button>
JavaScript
document.getElementById('open').onclick = function() {
window.open('http://google.com');
};
<button id="open">open</button>
document.getElementById('open').onclick = function() {
window.open('http://google.com');
};