JSFiddle - React, Tailwind, and code Playground

HTML

<ul><li>FAIL</li></ul>

JavaScript

$("li:nth-of-type(1)").html('PASS')