JSFiddle - React, Tailwind, and code Playground

HTML

<form onsubmit='return test();'>
    <input type='submit' />
</form>

JavaScript

function test(){
    return false;
}