JSFiddle - React, Tailwind, and code Playground
HTML
<div class="container"></div>
JavaScript
$(function(){
var htmlString = '<input type="text" id="someID" name="someID">';
$(".container").append(htmlString);
$("#someID").val("newValue");
});