JSFiddle - React, Tailwind, and code Playground
HTML
<div class="myClass"> my div </div>
<p class=""> my p </p>
<span> my span</span>
<br/>
JavaScript
$('*').each(function() {
if ($(this).hasClass('') === false) {
$("body").append($(this).prop("tagName") + " has a proper class defined <br/>");
}
});