JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" value="hello"/>

JavaScript

$("input").click(function() {
    this.select();
});