# react-nest-components

> ## Installation ```bash $ yarn add react-nest-components ``` or ```bash $ npm install --save react-nest-components ```

Latest version **0.1.1** (published 2020-01-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-nest-components
pnpm add react-nest-components
yarn add react-nest-components
bun add react-nest-components
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2020-01-17 |
| First published | 2020-01-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 1.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Ashley Narcisse |
| Maintainers | darkfadr |
| Keywords | react, nest, component, provider, context |

## Links

- npm: https://www.npmjs.com/package/react-nest-components
- Repository: https://github.com/darkfadr/react-nest-providers
- Homepage: https://github.com/darkfadr/react-nest-providers#readme
- Issues: https://github.com/darkfadr/react-nest-providers/issues
- npm.io page: https://npm.io/package/react-nest-components

## Dependencies (1)

- [react](https://npm.io/package/react.md) ^16.12.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2020-01-17
- 0.1.0 — 2020-01-16

## README

# react-nest-components

## Installation
```bash
$ yarn add react-nest-components
```
or 
```bash
$ npm install --save react-nest-components
```

## Usage
```js
import React, { createElement } from 'react'
import nest, { render } from 'react-nest-components';
import i18n from './i18n';


const AppProviders = nest(
  AnalyticsProvider,
  () => render(LanguageProvider, { i18n }),
  ThemeProvider,
  CustomProvider
);

// Note: the above will create the following
// const AppProviders = ({children}) => (
//   <AnalyticsProvider>
//     <LanguageProvider i18n={i18n}>
//       <ThemeProvider>
//         <CustomProvider>
//           {children}
//         </CustomProvider>
//       </ThemeProvider>
//     </LanguageProvider>
//   </AnalyticsProvider>
// );

ReactDOM.render(
  <AppProvider>
    <App/>
  </AppProvider>, 
  document.getElementById('root)
);


```

## Why do this? Why so extra?

## TODO
- [ ] Add documentation
- [ ] Implement tests

---
_Source: https://npm.io/package/react-nest-components · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
