JSFiddle - React, Tailwind, and code Playground
by hunterliu
JavaScript
var node = {
tagName: 'div',
attributes: [ { 'id': 'myId' } ],
children: []
};
node.children.push({
tagName: 'div',
attributes: [ { 'id': 'childId' } ],
children: []
});
console.log(node);