1.0.0 • Published 3 years ago
react-provider-stack v1.0.0
react-provider-stack
Usage
This lets you avoid a deeply nested set of providers by defining them as an array.
import ProviderStack from 'react-provider-stack';
function App() {
  return (
    <ProviderStack providers={[Provider1, Provider2, Provider3]}>
      <AppLogic />
    </ProviderStack
  );
}The only requirement is that each provider is a react component that only takes children.
This README was generated by anansi.