JSFiddle - React, Tailwind, and code Playground

by rmurphey

HTML

<div id="foo"></div>

JavaScript

$(document).ready(function () {
    var html = $('#nonexistent').html();
    console.log('html is', html);
    $('#foo').html('bar')
    $('#foo').html(html);
});