Dependency Injection in JS
What is Dependency Injection (DI)?
DI is a programming pattern where dependencies are passed in as parameters instead of instantiation inside the function or class.
Let’s take a look at an example of a class that uses another class to fetch data from...
njeri-ngigi.hashnode.dev5 min read