JSFiddle - React, Tailwind, and code Playground

HTML

<input id="Nametxt" value="txt" value="Kim"/>

JavaScript

$("#Nametxt").attr("value","Jim");