Set default value to param attributes in elementFactory function
DominikNowak opened this issue · 0 comments
DominikNowak commented
To avoid need of typing a blank object to argument when you want create only tag, without any attributes or children.
Now:
elementFactory('div', {});
After:
elementFactory('div');