JSFiddle - React, Tailwind, and code Playground

by techiedelight

HTML

<div class="container"></div>

CSS

.container {
  font: 15px 'Exo 2', sans-serif;
}

JavaScript

$(document).ready(function() {
  if ($('div.container').length) {
    alert('Class exists');
  } else {
    alert('Class does not exist');
  }
});