|
|
|
|
|
by brianvaughn
3008 days ago
|
|
> Well, I tend to make a lot of very small stateless components. If a component is 1-6 JSX tags, the new context API represents a boilerplate overhead of between 100 and ~17%. Not if you use a HOC (e.g. `withContext(Component)`) like a couple of the docs examples showed. > Additionally, the semantics of having a consumer's props.children be an immediately invoked function are a little bit unintuitive to me. That's fair! I would encourage you to give it a chance though. I think it's a pattern that really grows on you after a short time. :) |
|