Skip to content

Instantly share code, notes, and snippets.

@EdwardIrby
Last active March 5, 2018 17:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save EdwardIrby/72241b89df1ba0b1dcf7d1d9edc6dd7e to your computer and use it in GitHub Desktop.
Save EdwardIrby/72241b89df1ba0b1dcf7d1d9edc6dd7e to your computer and use it in GitHub Desktop.
Any child wrapped by ShadowDom
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