JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="foo" />
<br />
JavaScript
var element = document.createElement('input');
element.type = 'text';
element.value = 100;
document.getElementsByTagName('body')[0].appendChild(element);