JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>
<form name="form1" action="">
  <input type="text" value="Olá">
  <input type="submit" value="Go">
</form>

JavaScript

$("form").submit(function( event ) { 
  event.preventDefault();
  var nome = $(this).attr("name");
  alert(nome);
});