JSFiddle - React, Tailwind, and code Playground

HTML

<form onsubmit="teste(event); return false;">
<input><input type="submit">
</form>

JavaScript

function teste(e) {
	console.log(e)
}