JSFiddle - React, Tailwind, and code Playground
HTML
<div contenteditable="true" spellcheck="true"><div data-offset-key="aaa-0-0"><span data-offset-key="aaa-0-0"><span class="anything">Fixxxx my spelling</span></span></div></div>
<ol>
<li>Add some content to the div above.</li>
<li>The red squiggly should appear under the first word.</li>
<li>Use right-click to fix the spelling.</li>
<li>Inspect the DOM. Verify that it's sane.</li>
</ol>
JavaScript
var txt = document.getElementById('txt');
txt.addEventListener('input', function(e) {
console.log(e.target.firstChild.childNodes);
}, false);