JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>

JavaScript

$(function() {
    alert('before');
    $('#test').html('<div>Test Show</div><div id="fadeMe" style="display:none">Test Fade In</div>');
    alert('after');
    $('#fadeMe').fadeIn();
});