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.
[ Parent
| on HN ]
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...