Created
May 26, 2020 10:15
-
-
Save BenOsodrac/4233f9c822f70d50aa3235d6eb1dec25 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 header = document.createElement('header'); | |
const shadowRoot = header.attachShadow({mode: 'open'}); | |
shadowRoot.innerHTML = '<h1>Hello Shadow DOM</h1>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment