JSFiddle - React, Tailwind, and code Playground
HTML
<div></div>
<div id="jq"></div>
JavaScript
var obj = {
a: {
one: 1, two: 2
},
b: {
apple: 'yummy', banana: 'ehh'
},
c: {
d: {
'jQuery': jQuery
},
e: ['You get the point']
}
};
$('div').data('info', obj.b);
$('#JQ').data('jq_reference', obj.c.d.jQuery);
obj.b.apple = 'bleuch';
alert($('div').data('info').apple);