DEV Community

Discussion on: Making Consistent React Forms Using a Higher-Order Component

Collapse
 
kayis profile image
K

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.