JSFiddle - React, Tailwind, and code Playground

by Aaron Zhang

HTML

<h4 class="class1 class2 class3 do-not-remove">abcdefg</h4>

CSS

.do-not-remove{
    color:red;
}
.class1, .class2, .class3{
    color:green !important
}

JavaScript

$('h4[class*="class"]').removeClass();