JSFiddle - React, Tailwind, and code Playground

by David Thomas

HTML

<span>Some text</span>

JavaScript

$('span').bind('dblclick',
               function(){
                   $(this).attr('contentEditable',true);
               });