Hello Juanilaquiz, you are correct. This is not the best example to show this, it is a trivial example. No one should have a component that all it does is render another component. In an ideal situation, we have the Header component also doing a bunch of things and might even add some props to the profile component. The example was to show a pattern which is common and a way to solve without adding extra complexity.

Boluwatife Fakorede
Boluwatife Fakorede

Written by Boluwatife Fakorede

A frontend developer, while at that, just a curious cat that loves to share what he knows.

No responses yet