Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Web components, attaching template content to the DOM
let infoCard = document.querySelector('#info-card');
let bodyElement = document.querySelector('body');
let infoCardInstance = document.importNode(infoCard.content, true);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment