JSFiddle - React, Tailwind, and code Playground

HTML

<ul class="gdl-toggle-box">
   <li class="">
      <h2 class="toggle-box-title"><span class="toggle-box-icon"></span>Volunteer Form</h2>
      <div class="toggle-box-content" style="">
      </div>
   </li>
</ul>

CSS

.active
{
    color:red;
}

JavaScript

$('h2.toggle-box-title').click(function(){
       $(this).closest('li').addClass('active');
    });