Skip to content

v1.2.0

Compare
Choose a tag to compare
@svileng svileng released this 05 Nov 14:31
· 27 commits to master since this release
b0678ef

Added id and class shorthand options to the createElement constructor.

createElement("div", {id: "id", class: "foo bar"})

The class shorthand sets element.className to the given value:

https://developer.mozilla.org/en-US/docs/Web/API/Element/className