JSFiddle - React, Tailwind, and code Playground

HTML

<form action="http://www.google.com" method="get">
<input value="some value" />
<input type="submit" value="Submit" />
</form>

JavaScript

// If prevention worked, the page shouldn't go to google.com
$('form').submit(function (event) {
    return false; // without this you go to google.com
});