JSFiddle - React, Tailwind, and code Playground
HTML
<p>Some editable text. Double click to edit</p>
JavaScript
$('p').dblclick(function(event) {
$this = $(this);
$this.attr('contenteditable', "true");
$this.blur();
$this.focus();
});