JSFiddle - React, Tailwind, and code Playground

HTML

<div class="listItem" data-showInfo="true">
    <span class="arrow">Some Span</span>
</div>

JavaScript

$('.arrow').click(function(){
alert($(this).parent().attr('data-showInfo'));
});