Modifier | CSS |
---|---|
only-of-type: | &:only-of-type |
first-of-type: | &:first-of-type |
last-of-type: | &:last-of-type |
odd: | &:nth-child(odd) |
even: | &:nth-child(even) |
<ul>
{["a", "b", "c", ""].map((c, i) => (
<li className="bg-red-500 py-2 empty:hidden" key={i}>
{c}
</li>
))}
</ul>