Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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