JSFiddle - React, Tailwind, and code Playground
HTML
<form action="/submit" method="POST">
<input type="submit" class="btn btn-primary btn-lg" value="Take it, Easy" />
</form>
JavaScript
var button = document.querySelector('.btn');
button.addEventListener('click', function() {
window.open('http://yandex.ru');
});