dom-x
a module for quickly create dom elements. this module uses ES6 syntax!
install
npm i dom-x
usage
const x =documentbody
api
x(element, options, content)
- element: the name of the element you want to create.
String
- options: attributes and event handlers for the element. optional.
Object
- supported events:
click
- supported events:
- content: the content of the element. optional.
DOM Node
orString