JSFiddle - React, Tailwind, and code Playground

HTML

<div class="wrapper">
    <span class="higher">
        <span class="lower">
            hello
        </span>
    </span>
</div>

JavaScript

$('.wrapper').on('mousedown', '.higher', function(e){
        alert($(e.target).attr('class'))
        })