Last active
March 5, 2018 17:53
-
-
Save EdwardIrby/72241b89df1ba0b1dcf7d1d9edc6dd7e to your computer and use it in GitHub Desktop.
Any child wrapped by ShadowDom
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
export const BasicUsage = (props) => { | |
const { text } = props; | |
return ( | |
<ShadowDom className={ className}> | |
<span>{ children }</span> | |
</ShadowDom> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment