Skip to content

Instantly share code, notes, and snippets.

@EdwardIrby
Created March 5, 2018 01:01
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/f405d69c09456e8ae4adc2d53db6fa12 to your computer and use it in GitHub Desktop.
Save EdwardIrby/f405d69c09456e8ae4adc2d53db6fa12 to your computer and use it in GitHub Desktop.
Light Dom FACE
export const LightDomUsage = (props) => {
return (
<ShadowDom lightDom={
() => (
<Fragment>
<span>I'm some light dom </span>
<span slot='span' className='text'>I'm some slottedlight dom </span>
</Fragment>
)
}>
<slot name='span'></slot>
</ShadowDom>
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment