Skip to content

About

an improved document.createElement: converts deep objects into DOM trees

Resources

Stars

0 stars

Watchers

2 watching

Forks

 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

mixintCreateElement

a simple global function that turns converts deep objects into a DOM trees

Also every child created from this tree has a props property that offers easy getting and setting of HTML attributes.

mixint.createElement({div: {id: 'whateverYouWant', textContent: 'This becomes a text node'}})

style can be a string that overwrites any present styleattribute, or key value pairs that are programmatically applied when you sign the object to style. You get to use class, not classNames or classList, classList is okay too if you have an array.

About

an improved document.createElement: converts deep objects into DOM trees

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages