Skip to content

Say hi to `mapThemrProps`

Latest
Compare
Choose a tag to compare
@javivelasco javivelasco released this 12 May 11:12
· 7 commits to master since this release

This new version brings some bug fixes and a new interesting option: mapThemrProps. It allows you to decide the way you want to pass down props from a component decorated with themr. Apart from other use cases, the most straightforward one is when you are decorating a component that is already decorated and passes down a ref by accepting a different property such as withRef.

In those cases you can customize the prop passing to give withRef instead of ref to the inner component. Please check README for docs and tests for a real use case.

Thank you all 🎉 and specially @raveclassic which is helping a lot with this since months ago