Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support render function pattern with children prop. #3

Open
squgeim opened this issue Jun 13, 2018 · 1 comment
Open

Support render function pattern with children prop. #3

squgeim opened this issue Jun 13, 2018 · 1 comment

Comments

@squgeim
Copy link

squgeim commented Jun 13, 2018

The render prop patterns has become quite popular in the React ecosystem and the most common way to do it with the children prop. The renderItem prop is doing exactly this. I believe supporting the children prop for compatibility with the ecosystem would be nice.

@rabingaire
Copy link
Contributor

rabingaire commented Aug 27, 2018

Instead of render props what do you think about Children Render Props, I personally find Children Render Props cleaner to write and expose as an API. I guess Children Render Props is what you meant to suggest here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants