JSFiddle - React, Tailwind, and code Playground

HTML

<div id="d1"></div>

JavaScript

$('#d1').text('test');