JSFiddle - React, Tailwind, and code Playground

by Ilmv

HTML

<input type="text" readonly="readonly" value="ABC" />

JavaScript

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