JSFiddle - React, Tailwind, and code Playground
HTML
<div id="one"></div>
<div id="two"></div>
<div id="three"></div>
JavaScript
$('#one').html("<h1>one</h1>");
$('#two').html("<h1>two</h1>");
$('#three').text("<h1>three</h1>");
<div id="one"></div>
<div id="two"></div>
<div id="three"></div>
$('#one').html("<h1>one</h1>");
$('#two').html("<h1>two</h1>");
$('#three').text("<h1>three</h1>");