JSFiddle - React, Tailwind, and code Playground

by Ryan Brackett

HTML

<input type="text" value="username" onfocus="if(this.value=='username'){this.value=''};" onblur="if(this.value==''){this.value='username'};" />