JSFiddle - React, Tailwind, and code Playground

HTML

<button class="opennewwindow" value="somevalue">Open new window!</button>

JavaScript

$('.opennewwindow').click(function(e) {
            e.preventDefault();
            window.open("http://www.stackoverflow.com")
            /*alert('its works');*/
});