JSFiddle - React, Tailwind, and code Playground

HTML

<div contenteditable="true">testing2</div>

JavaScript

$(document).ready(function() {
    $("div").removeAttr("contentEditable");
    alert("ok");
});