Expose a method to update the initialized tree
m-sureshraj opened this issue · comments
const node = document.querySelector('.foo');
const options = { data: {}, theme: 'darcula' };
const dt = new DomTree(options, node);
dt.init();
dt.update({ theme: 'one-dark' });