Drawing a similarity between Angular and React here isn't particularly beneficial.
In React, tracking down where a particular prop comes from within a nest of multiple HOCs is a huge pain and a massive code smell that Hooks has since addressed beautifully.
It does not clearly identify the source of your data - you have no idea where
x
andy
come from :)They don't need to know, just like with Dependency Injection in Angular.
Drawing a similarity between Angular and React here isn't particularly beneficial.
In React, tracking down where a particular prop comes from within a nest of multiple HOCs is a huge pain and a massive code smell that Hooks has since addressed beautifully.
Aren't we talking about the dependencies of a component?
I don't know why it is necessary to know the source of a dependency inside a component.