JSFiddle - React, Tailwind, and code Playground
HTML
<script>
function func(a){
switch(a) {
case "a" : return false;
}
}
</script>
<form onsubmit="return func('a');" action="http://jshell.net"><input type="submit" value="attr"></form>