JSFiddle - React, Tailwind, and code Playground

HTML

<ul>
  <li>Level 1a
    <ul>
      <li>Level 2a</li>
      <li>Level 2b</li>
    </ul>
  </li>
  <li>Level 1b
    <ul>
      <li>Level 2c</li>
      <li>Level 2d</li>
    </ul>
  </li>
</ul>

CSS

.ui-selectable .ui-selecting { background: #FECA40; }
 .ui-selectable .ui-selected { background: #F39814; color: white; }

JavaScript

$(function() {
    $( 'ul' ).children('li').children('ul').selectable();
 });