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}
<textarea></textarea>
<textarea>not empty</textarea>
<br>
Try typing into either. Rule does not update.
textarea:empty {border:2px solid red}