Wildhoney / ReactShadow

:beginner: Utilise Shadow DOM in React with all the benefits of style encapsulation.
https://react-shadow.herokuapp.com/
MIT License
1.3k stars 80 forks source link

Provide ShadowRoot to child components via Context #71

Closed darthtrevino closed 4 years ago

darthtrevino commented 4 years ago

By using a new export, useShadowRoot, clients can access the shadowRoot instance, which contains various CSS selector APIs.

coveralls commented 4 years ago

Coverage Status

Coverage increased (+0.6%) to 77.778% when pulling c496126d9b82c86c48c7580168e752676642eb6f on darthtrevino:task/pr_context into 28573370089f11b639cf11be06ea92000d6705d0 on Wildhoney:master.

Wildhoney commented 4 years ago

Thanks @darthtrevino — nice addition.