JSFiddle - React, Tailwind, and code Playground
HTML
<div id="name1"></div>
<div id="name2"></div>
JavaScript
$('#name1').text("YO");
$('#name2').html("<b>YO</b>");
<div id="name1"></div>
<div id="name2"></div>
$('#name1').text("YO");
$('#name2').html("<b>YO</b>");