JSFiddle - React, Tailwind, and code Playground

HTML

<textarea onfocus="this.select()" onmouseup="return false;" readonly="readonly">Test</textarea>
<!--

To see what I'm talking about, click in the textarea. It highlights the contents then loses it.

-->