JSFiddle - React, Tailwind, and code Playground

HTML

<html>
  <head>
  </head>
  <body>
    <h2 id='title'>IE7/8 Demo</h2>
    <p id="desc">Trying to add a button that contains a class doesn't work in IE7/8 you will see the button in IE9/Firefox/Chrome, but not IE8 or less<p>
  </body>
</html>

JavaScript

$(function() {
  var d = $("#desc");
  d.after($('<button>', {html: 'Classy button', class: 'btn'}));
});