Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.06 KB

File metadata and controls

26 lines (19 loc) · 1.06 KB

react-provider-stack

npm downloads gzip size npm version PRs Welcome

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.