JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" value="Name" onfocus="if (this.value=='Name') this.value = '';this.style.color = '#000';" onblur="if (this.value=='') {this.value = 'Name';this.style.color ='#888';}" size="20" class="hintTextbox">
CSS
INPUT.hintTextbox { color: #888; }
INPUT.hintTextboxActive { color: #000; }