JSFiddle - React, Tailwind, and code Playground

HTML

<div id="target">

</div>
<button id="button">
add input tag
</button>
</button>

JavaScript

$("#button").click(function() {
	$("#target").append("<input type='text' name='data' value='1'>")
});