DEV Community

Fatima Alam
Fatima Alam

Posted on • Edited on

React Components

Component Tree
Whenever we need a repeated functionality we first life that component to the root and then re-use it wherever needed.

Image description

But when these counters(or the function needed) are scattered in that tree then lifting it upto the root doesn't make sense and we need another method to share functionalities between different components.

Image description

Top comments (0)