We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 38d2118 commit 538e436Copy full SHA for 538e436
cr.js
@@ -0,0 +1,6 @@
1
+export const cr = (tag, parent, cls) => {
2
+ const c = document.createElement(tag);
3
+ if (cls) t.className = cls;
4
+ if (parent) parent.appendChild(c);
5
+ return c;
6
+};
0 commit comments