JSFiddle - React, Tailwind, and code Playground

HTML

Updates input value onchange so when reset it keeps its value
<form>
    <input class="input" type="text" value="test">
    <input type="reset" value="reset">
</form>

<br />

Resets value back to 'test' on reset
<form>
    <input type="text" value="test">
    <input type="reset" value="reset">
</form>

JavaScript

$('.input').change(function() {
   $(this).attr('value', $(this).val());
});