-
-
Save home-gihub/620aa33f86806e078e4f349d511b9b54 to your computer and use it in GitHub Desktop.
dom element maker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function $(type, inside) { | |
let el = document.createElement(type) | |
el.appendChild(inside) | |
return el | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment