JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input /><input type="button" value="reset" /><br />
     <input /><input type="button" value="reset" /><br />
     <input /><input type="button" value="reset" /><br />
     <input /><input type="button" value="reset" /><br />
</form>

JavaScript

function resetForm() {
    $(this.previousSibling).val(function() {
        return this.defaultValue;
    });

}

$( "input[type='button']" ).bind( "click", resetForm );