JSFiddle - React, Tailwind, and code Playground
HTML
<form action="" type='post'>
<input type="text" />
<input type="submit" />
</form>
JavaScript
$('form').on('keypress keydown keyup', function(e) {
if (e.which == 13) {
//alert(e.which);
e.preventDefault();
return false;
}
});