JSFiddle - React, Tailwind, and code Playground

HTML

<input id="myTextbox" type="text" name="myTextbox" value="FooBar" />

JavaScript

$('#myTextbox').focus(function() {
    $(this).val("");
  });