JSFiddle - React, Tailwind, and code Playground

HTML

<li id="0">
  <i class="abc"></i>
  TEST TEXT
</li>

JavaScript

$("#0").text(function() {
    $(this).children().html() + "NEW TEXT");
});