JSFiddle - React, Tailwind, and code Playground

by Dedi Wibisono

HTML

<div class="wrap"></div>

CSS

.new{
  color: red;
}

JavaScript

$('.wrap').append("<p class='test'>test</p>");

$('.test').addClass('new');