We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c62e1d commit 71eb8c5Copy full SHA for 71eb8c5
README.md
@@ -7,6 +7,20 @@
7
8
## Usage
9
10
-TBD
+This lets you avoid a deeply nested set of providers by defining them as an array.
11
+
12
+```javascript
13
+import ProviderStack from 'react-provider-stack';
14
15
+function App() {
16
+ return (
17
+ <ProviderStack providers={[Provider1, Provider2, Provider3]}>
18
+ <AppLogic />
19
+ </ProviderStack
20
+ );
21
+}
22
+```
23
24
+The only requirement is that each provider is a react component that only takes `children`.
25
26
This README was generated by [anansi](https://github.com/ntucker/anansi/tree/master/packages/generator-js#readme).
0 commit comments