JSFiddle - React, Tailwind, and code Playground

by NicoO

HTML

<ul>
    <li>hide this</li>
</ul>

<ul>
    <li>show this</li>
    <li>and others...</li>
</ul>

CSS

ul li:only-of-type
{
    display: none;
}