pedronauck/react-adopt

Support for `render` prop on the composed component

ctrlplusb opened this issue ยท 2 comments

Would you be open to the supporting a render prop as well as the current children prop for providing the rendering function?

const Composed = adopt(...);

<Composed render={({ greet, name }) => <div>{greet} {name}</div>} />

Sure @ctrlplusb, great idea ๐Ÿ™
I released this feature on v0.5.1 ๐Ÿš€

Awesome ๐ŸŽ‰