JSFiddle - React, Tailwind, and code Playground

by Matthew Day

HTML

<form onsubmit="handleSubmit()" method="POST" action="handleSubmit()">

  <input type="text" />
  <button type="submit">Submit</button>

</form>

JavaScript

function handleSubmit() {
	alert('hey');
}