Some have labeled this an anti-pattern, but others have argued that it is more capable than normal, boring old higher-order components.
They argue for different things.
One says that function as a child component is bad, but using another prop for the function is okay.
The other argues that a function prop is better than a higher order component.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Some have labeled this an anti-pattern, but others have argued that it is more capable than normal, boring old higher-order components.
They argue for different things.
One says that function as a child component is bad, but using another prop for the function is okay.
The other argues that a function prop is better than a higher order component.