JSFiddle - React, Tailwind, and code Playground
by Satpal Singh
HTML
<a href="http://example.com" onclick="return modify_val( 1, 2 );">You need to return false from the inline event handler, not (only) from the function that it's calling</a>
JavaScript
function modify_val() {
return false;
}