JSFiddle - React, Tailwind, and code Playground

HTML

<div contenteditable="true">My editable div</div>

JavaScript

jQuery(document).ready(function() {
    var timeoutID;
    $('[contenteditable]').bind('DOMCharacterDataModified', function() {
        clearTimeout(timeoutID);
        $that = $(this);
        timeoutID = setTimeout(function() {
            $that.trigger('change')
        }, 50)
    });
    $('[contentEditable]').bind('change', function() {
        console.log($(this).text());
    })
})