JSFiddle - React, Tailwind, and code Playground

HTML

<p class="tab1 current"></p>

JavaScript

alert( $('p').attr('class').split(' ')[1] );