wix-incubator / react-templates

Light weight templates for react
https://wix.github.io/react-templates
MIT License
2.82k stars 207 forks source link

Problem with external components used inside a template(.rt file) #245

Closed p3pp8 closed 5 years ago

p3pp8 commented 5 years ago

SOLVED I've used <rt-props/> in order to leave my props unchanged. SOLVED

UPDATE The problem is that while compiling a template any component prop name is converted to camel case syntax, so if i've "autoplay={true}" it becomes "autoPlay={true}"... UPDATE

Hello, just tried out this Component: Nuka-Carousel with rt-import on template, the Component was rendered fine but autoplay did not work so i've tried some other similar Component(ie react-slick) and got the same result. Something must be lost when html is compiled for the render function. Any idea or workaround? Any help is really appreciated!

Cheers