BBKolton / reactify-wc

Use Web Components with React
https://npmjs.org/reactify-wc
MIT License
174 stars 10 forks source link

Cannot pass styles to web component #8

Closed leifriksheim closed 4 years ago

leifriksheim commented 4 years ago

Hi. Thanks for this package. It seems like I cannot pass style props like an object to the custom element after converting to a React component.

BBKolton commented 4 years ago

Hi @leifriksheim, thanks for the issue report! React has its own syntax for styling that is semantically different from the browser. There are many options out there for more detailed and less-ugly styling than inline objects that should work well with a reactified component. However, I definitely see the merit of supporting the style syntax.

Please feel free to take a stab at it and open a PR!