Last active
May 28, 2018 14:04
-
-
Save kyuwoo-choi/2bdd6fe49aca233eb9d13307e20399dd to your computer and use it in GitHub Desktop.
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
const wrapper = document.createElement('div'); | |
const content = document.createElement('div'); | |
... | |
anotherElement.innerText = someText; | |
... | |
document.body.appendChild(wrapper); | |
wrapper.appendChild(content); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment