JSFiddle - React, Tailwind, and code Playground

HTML

<textarea></textarea>
<textarea>not empty</textarea>
<br>
Try typing into either. Rule does not update.

CSS

textarea:empty {border:2px solid red}