JSFiddle - React, Tailwind, and code Playground

HTML

<form>
    <input placeholder="type something here">
    <button type="reset">Reset</button>
</form>

JavaScript

$('form').on('reset', function(e) {
    setTimeout(function() {
        $('input').val("reset'd value");
    }, 0);
});

//somewhere in another module..
$('form').trigger('reset');
$('input').val('value after resetting the form');