Skip to content

react-noui/react-provider-stack

Repository files navigation

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.