You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd compare using function in children to using thunks in Redux - you don't get the actual child, but something that you can call to get the child.
In this sense it's natural that there cannot be any other child other than the one between the tags, whereas with the render prop it feels (IMO) like a second API to do the same thing, just like the explicit children prop (i.e. <Compo children={something} />).
I think using function-as-children shouldn't feel any different from using thunk-as-action. On the other hand, not everyone fancies Redux 😉
I'm personally starting to prefer using
render
instead ofchildren
whenever I'm using a render prop. But that may just be me.The text was updated successfully, but these errors were encountered: