3 ms·
Try my new lib... here it is right here! document.createElement("div");
by jtms 8y ago
Try my new lib... here it is right here!
document.createElement("div");
- kuroguro 8y agohttp://vanilla-js.com/ http://vanilla-js.com/
- oh_sigh 8y agoWhat's your library licensed as?
- bigiain 8y agoSurely you'd have to pick SSPL, to avoid the risk of Amazon getting rich off this innovative technology without contributing back to the community???
- minieggs 8y agoI've been using plain JavaScript more and more lately. Luckily Element.protoype has this nice property where if you attempt to read some setter functions it will throw, making it cake to implement a chainable createElement. Fun stuff, https://github.com/mini-eggs/ogle-tr-122b https://github.com/mini-eggs/ogle-tr-122b
- mr_toad 8y agoMost people get tired of the verbosity of createElement + appendChild + createTextNode, so they whip up a utility function, something like element(‘h1’, {class: “foo”}, “Chapter 1”) Then they add method chaining, support for event listeners, and various other bells and whistles. And that’s how new Javascript frameworks are born.