|
|
|
|
|
by tinganho
1571 days ago
|
|
I think in the class world this is normally done by writing a service and injecting it on the constructor of the parent class. Since, React doesn't have DI built-in, it becomes problematic with the injection. hooks are essentially classes imo. |
|