Dependency injection in React Components should not contain business logic, do you agree? If you’re on the fence about the answer, I’ll try to give you some insights into why we shouldn’t do this. This definition should discourage us from putting business logic in Components.

5m read timeFrom itnext.io
Post cover image
Table of contents
TL; DR;Long versionWhat is the Dependency Injection, and why should you use itDependency injection in ReactDependency injection using propsDependency injection using React Context

Sort: