JSFiddle - React, Tailwind, and code Playground
JavaScript
var a=$('<p>a</p>'); //create an object with one text node
a.contents().data('key', 'value'); //add data to that text node
document.write(a.contents().data('key')); //check presence of data, succeeds
document.write("<br>");
var b=a.clone(true, true); //deep clone object a to b
document.write(b.contents().data('key')); //check presence of data on clone, failure