4 ms·
Yes, but then that prop would need to be passed down explicitly through every component. This would require a _lot_ of boilerplate.
by brianvaughn 9y ago
Yes, but then that prop would need to be passed down explicitly through every component. This would require a _lot_ of boilerplate.
- brlewis 9y agoOK, it just boils down to me thinking one explicit prop for every component isn't too much boilerplate. I can see some teams liking the idea of shaving off that explicit prop as long as everybody knows about the implicit context(s) that also affect component behavior.
- brianvaughn 9y ago> s everybody knows about the implicit context(s) that also affect component behavior. Just in case there's any misunderstanding- (I don't think there is, but just being safe)- context isn't implicit. You have to opt into it either by using the `<Consumer>` component or a HOC that injects a context prop.