JSFiddle - React, Tailwind, and code Playground

HTML

<div id="test"></div>

JavaScript

$('#test').html('Test: <!-- this is a comment -->') ;