Factoring

This commit is contained in:
Eric Fennis
2020-07-18 12:39:08 +02:00
parent e08eff7dee
commit ea8bec9320
5 changed files with 20 additions and 314 deletions
+2
View File
@@ -12,6 +12,8 @@ const createElement = (tag, attrs, children = []) => {
element.appendChild(childElement);
});
}
return element;
}
export default (iconNode) => createElement(iconNode);