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

Functions as Children on ReactPattern.com is wrong #22

Open
AtomicSimon opened this issue Feb 21, 2020 · 1 comment
Open

Functions as Children on ReactPattern.com is wrong #22

AtomicSimon opened this issue Feb 21, 2020 · 1 comment

Comments

@AtomicSimon
Copy link

Hi,

I've just stumbled upon this brilliant list of pattern, however, I have noticed one of them is wrong.

the "Function as children" section mentions that it's not possible, however, it's a known & used pattern.

See here as an example: https://codedaily.io/tutorials/6/Using-Functions-as-Children-and-Render-Props-in-React-Components

Regards,
Simon

@AtomicSimon
Copy link
Author

After reading the rest of the article, I have noticed that it's explained under the Render Prop section.

In this case, what is implied by the Function as Children pattern, if not what's covered in the render prop section?

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

1 participant