DEV Community

FatimaAlam1234
FatimaAlam1234

Posted on • Updated 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)