JSFiddle - React, Tailwind, and code Playground

HTML

<form id="reset" >
    <input type="text" value="50" />
</form>

<a id="btn">Reset</a>

JavaScript

$(document).ready(function(){
    $('a').click(function(){
        $('#reset').reset();
    });
});

jQuery.fn.reset = function () {
  $(this).each (function() { this.reset(); });
}