News for hackers. Stuff that matters.
Re:React in patterns by kin on Tuesday July 26, 2016 @02:37PM (#12167824)
Yeah, I'm also not a fan of the DI example. I would rather explicitly pass it down the component tree or use Redux's connect. I believe React's docs advise against using context.
Re:React in patterns by ower_89 on Wednesday July 27, 2016 @12:32PM (#12174231)
You can use InversifyJS to inject a value into a React component without passing it explicitly through each component and without using the context http://blog.wolksoftware.com/dependency-injection-in-react-p...