ionic-team / stencil-ds-output-targets

These are output targets that can be added to Stencil for React and Angular.
https://stenciljs.com
MIT License
251 stars 117 forks source link

fix(react): propagate style properties in SSR #508

Closed christian-bromann closed 3 weeks ago

christian-bromann commented 3 weeks ago

Pull request checklist

Please check if your PR fulfills the following requirements:

Pull request type

Please check the type of change your PR introduces:

What is the current behavior?

If you apply a style property to a React component, Stencil SSR would not propagate it because 1: the property value is not a primitive and 2: the property value is not known to Stencil.

What is the new behavior?

Handle style properties separately and transform the style object into a css string.

Does this introduce a breaking change?

Other information

n/a