bitovi / react-to-web-component

Convert react components to native Web Components. Works with Preact too!
https://www.bitovi.com/open-source/react-to-web-component
MIT License
729 stars 43 forks source link

boolean prop does not show in props #175

Open jieliu218 opened 8 months ago

jieliu218 commented 8 months ago

customElements.define( "weather-widget", r2wc(WeatherWidgetWapper, { props: { latitude: "number", longitude: "number", showHourly: "boolean", theme: "json", test: "string", a: "boolean", }, }), );

showHourly and a are not in props.

manudesir commented 2 months ago

only lowcase props work

diturriza commented 2 weeks ago

using lowercase props works for me as well.