JSFiddle - React, Tailwind, and code Playground
JavaScript
// This does not work in IE7/8
/*
var button = document.createElement('button');
button.type = 'button';
button.appendChild(document.createTextNode('I am button'));
document.body.appendChild(button);
*/
// Is this the only way?
document.body.innerHTML = '<button type="button">I am button</button>';