JSFiddle - React, Tailwind, and code Playground

HTML

<div id="example">
        <span>A child element</span>
    </div>

JavaScript

console.log($("#example").html()); //Prints "<span>A child element</span>"
console.log($("#example").get(0));