JSFiddle - React, Tailwind, and code Playground
HTML
<input type="text" id="field" value="Some Text">
JavaScript
var orig_text = $('#field').val();
$('#field').focus(function(){
var current_text = $(this).val();
if(current_text != orig_text){}
else{ $(this).val(''); }
}).focusout(function(){
var current_text = $(this).val();
if(current_text == '')
{ $(this).val(orig_text); };
});