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
250 stars 118 forks source link

fix(react): decamelize all component props #471

Closed christian-bromann closed 3 months ago

christian-bromann commented 3 months 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 a Stencil component has a property like toggleStyle, it would cause it to not being serialized correctly to toggle-style in the server rendered HTML code.

What is the new behavior?

This patch decamelizes all properties.

Does this introduce a breaking change?

Other information

I changed the kidsNames property to kidName as arrays can't be properly serialized in React.