Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
kin
· 10y ago · 0 comments
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.
Comments
[–]
ower_89
10y ago
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...
Better HN