JSFiddle - React, Tailwind, and code Playground

by tr_santi

HTML

<form action="test.php">
    <input type="text">
    <input type="submit" onclick="login();">
</form>

JavaScript

function login() {
	event.preventDefault();
}