JSFiddle - React, Tailwind, and code Playground
by Msk_Satheesh
HTML
<div id="myInput">
</div>
JavaScript
//dom document object modal
// Element Selectors
//getElementById //Object
//getElementsByClassName //Array of objects
//getElementsByTagName //Array of objects
//querySelector
//querySelectorAll
//createElement
//appendChild
const div = document.querySelector('#myInput');
const input = document.createElement('button');
input.innerHTML="Submit";
input.id = "submitBtn";
div.appendChild(input);