Function as Child Components
Merrick Christensen
3.5K22

I’ve been using this pattern when I have a component that can wrap various other components (like a view panel that can display different modules, for example).

For other components assuming there is no real liklihood of wanting to use different implementations, I’ve been favoring higher order components as being more expressive. Is this a reasonable assessment?

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.