JSFiddle - React, Tailwind, and code Playground

HTML

<div id="one"></div>
<div id="two"></div>
<div id="three"></div>

JavaScript

$('#one').html("&lt;h1&gt;one&lt;/h1&gt;");
$('#two').html("<h1>two</h1>");
$('#three').text("<h1>three</h1>");