Hacker News new | past | comments | ask | show | jobs | submit login

yeah I don't understand why the react team made such an API. It's literally service locator an anti-pattern. I started to think maybe it's best not to use mobx nor react for dependency injection and usehigher order functions/components in a poor man's DI manner is the most sustainable way forward. Because you can inverse control everything not just UIs/observables. Or use a separate lib like inversify or aurelia/dependency-injection



Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: