JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
    <li>a</li>
        <li>b</li>
    
        <li>c</li>
            <li>d</li>
            <li>e</li>
            <li>f</li>
</ul>

JavaScript

$('ul li').bind('mouseover', function(e){
    
    //how can I get the order of the childre
    //when hiver on c it shoul returns 3
    alert("child order ")
});