JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" id="textbox"/>

JavaScript

$('#textbox').focus(function(){
    if(this.value == "") {
       this.value = this.value + "- ";
        this.setSelectionRange(1,1);    
          }
});