re: Beyond appendChild: Better convenience methods for HTML VIEW POST

FULL DISCUSSION
 

const el = Object.assign(document.createElement('div'), {
textContent: Your div now has text,
className: 'and-is-classy',
});

This is sooooo gooood!!!

code of conduct - report abuse