JSFiddle - React, Tailwind, and code Playground

HTML

<input type="button" value="test" />

JavaScript

$('input[type=button]').click( function() {
 alert("test");   
});