Skip to content

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

Notifications You must be signed in to change notification settings

annalect/mixintCreateElement

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

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

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%