JSFiddle - React, Tailwind, and code Playground
by dying_sakura
HTML
<html>
<button type='button' class="test" name='x' value='Button'/>
</html>
JavaScript
function stuff(e) {
alert('Something happened');
}
$('.test').click(function(e) {
stuff(e);
});
$(document).keydown(function(e) {
if (e.keyCode == 187) { stuff(e); }
});