Avoiding deeply nested component trees
Ruben Oostinga

Hello, thanks for the article!

There are very good cases where passing components to props makes much sense, like any kind of layout containers. But for components which aren’t generic that — as with any kind of IoC, I guess — that creates unnecessary complexity. Solution for this I’ve found is more like passing ids to child components and short-cutting children with data store itself. In React/Redux world this means having connected components hierarchy. Of course, that comes with a performance price, but not something that couldn’t be managed.

Show your support

Clapping shows how much you appreciated Victor Suzdalev’s story.