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">
<input type="button" value="save" id="save">
</form>
<br />
Resets value back to 'test' on reset
<form>
<input type="text" value="test">
<input type="reset" value="reset">
</form>
JavaScript
$('#save').click(function() {
$('.input').attr('value', $('.input').val());
});