React: useContext and dependency injection

added by JavaScript Kicks
10/24/2019 8:07:34 AM

858 Views

How to use the useContext hook to inject dependencies on the components If you are familiar with the SOLID principles for creating maintainable and extensible applications, you will know that one of them establishes the rule of relying on abstractions and not on specific classes, also known as " Dependency Inversion Principle ".


0 comments