JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="htmlcode" rows="4" cols="50">
<strong>test</strong>
</textarea>
<button>Demo</button>
<div id="result"
style="height: 200px; background-color: whitesmoke;">
</div>
JavaScript
$('button').click(function() {
$('div').text($('textarea').val());
});