2 ms·
is this... Dependency Injection and function calls?
by kelsonpw35 4y ago
is this... Dependency Injection and function calls?
- codehammer 4y agoIt is actually! Dependency injection is not that easy with NodeJS in some execution contexts like http requests. Some frameworks make it easy like NestJS, but it's a relatively heavy implementation of DI. This method is lightweight and potentially easier to use, with an API close to react hooks or vue composables. Thanks for commenting!