JSFiddle - React, Tailwind, and code Playground

HTML

<form>
<input id="someId" type="text">
<input type="reset">
</form>

JavaScript

$("#someId").attr("defaultValue", "newValue");