react-collate
Flatten a React "pyramid of doom" by composing multiple layers into a single component
Getting Started
If you've ever built a react app, you've probably seen the following pyramid of context providers. Contexts are useful for injecting shared configuration in one place, but they can stack up pretty deep.
To avoid a pyramid, use the collate
fluent API to compose many wrappers into a single component. The following example creates the same React tree that is shown above.
No more pyramids, your app configuration is nicely contained, and it can even be reused.