DOMBuilder JS
Builds Html elements from your JavaScript code in a simple and fast way.
Guide
Installation
npm install dom-builder
Use it
or
var DOMBuilder = ;
My div container
JS Code
var myElement = ;
myElement ;
Self closing tags like BR or INPUT don't need to close, just write .ele('br') without to add .cl()
var fruits = document; fruits; // using Jquery ; // other way fruits;
You can get the string html code with myElement.body or myElement.toString()
insertAdjacentHTML works very well
The result
apple orange coconut berries