x-element
v1.0.0
Published
A convenient way to create DOM elements.
Downloads
5
Readme
Element
Element is a JavaScript library providing a convenient way to create DOM elements.
Examples
var element = require('x-element');
var myList = element('ul', {className: 'list'}, [
element('li', {textContent: '1'}),
element('li', {textContent: '2'})
]);
document.body.appendChild(myList);
Installation
npm install --save x-element