Fang Jin
May 4, 2021

--

After writing that reply, i start to realize maybe the problem here is the following.

It depends on how many props that a child need from parents. If none, then composition could be a nice way to go.

IMHO, this is a bit textbook naive.

--

--

Fang Jin
Fang Jin

Written by Fang Jin

Front-end Engineer, book author of “Designing React Hooks the Right Way” and "Think in Recursion"

No responses yet