Created
April 27, 2017 23:09
-
-
Save abiodun0/cdcbe6270057061770b0670659f1d545 to your computer and use it in GitHub Desktop.
simple abstractions over dom
This file contains hidden or 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
const el = document.createElement.bind(document) | |
const text = document.createTextNode.bind(document) | |
const append = (parent, ...children) => { | |
children.forEach(c => parent.appendChild(c)) | |
return parent | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment