adobe / react-webcomponent

This projects automates the wrapping of a React component in a CustomElement.
Apache License 2.0
105 stars 19 forks source link

Support style/link optional parameters in createCustomElement to style wrapped React component. #23

Open AndreyLuzinov opened 4 years ago

AndreyLuzinov commented 4 years ago

Expected Behaviour

In case of using Webpack Minicssextractplugin or StyleLoaderPlugin I want to be able to pass generated styles inside web component to style React component.

Actual Behaviour

Right now only inline styles in React component will work behind shadow dom.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Try to wrap React component with css modules.

Platform and Version

any

P.S. I could contribute code to add this functionality.

alexmirea commented 4 years ago

@AndreyLuzinov thank you for submitting this, contributions are of course welcome.