JSFiddle - React, Tailwind, and code Playground

HTML

<h1>This innerHTML will be copied to the H2</h1>
<h2></h2>
<img src="http://d2tvtnud6va23l.cloudfront.net/assets/img/logo.png" />

JavaScript

// this is placed in HEAD according to "fiddle" options
setTimeout(function(){
    var h = 'innerHTML',
        t = function(tag) { 
            return document.getElementsByTagName(tag)[0];
        };
    t('h2')[h] = t('h1')[h];
},0);