Component Tree
Whenever we need a repeated functionality we first life that component to the root and then re-use it wherever needed.
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.
Top comments (0)