https://github.com/horusgoul/react-component-pack
Library that allows you to create context provider groups
https://github.com/horusgoul/react-component-pack
library providers react utility
Last synced: 11 months ago
JSON representation
Library that allows you to create context provider groups
- Host: GitHub
- URL: https://github.com/horusgoul/react-component-pack
- Owner: HorusGoul
- License: mit
- Created: 2019-11-16T11:08:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T01:04:43.000Z (over 3 years ago)
- Last Synced: 2025-07-04T16:58:07.075Z (12 months ago)
- Topics: library, providers, react, utility
- Language: TypeScript
- Homepage:
- Size: 1.76 MB
- Stars: 37
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Component Pack · [](https://www.npmjs.com/package/react-component-pack) [](./LICENSE)
Say goodbye to provider hell with react-component-pack, a utility that allows you to group multiple components into a single one
```bash
npm install react-component-pack
```
## Usage
With `react-component-pack` you can go from this:
```jsx
function App() {
return (
);
}
```
To this:
```jsx
import { createPack } from 'react-component-pack';
const ProviderPack = createPack(
AuthProvider,
DataProvider,
AnotherDataProvider,
WtfProvider,
ThisIsGettingReallyBigProvider,
OhMyGodTheresMoreProvider
);
function App() {
return (
);
}
```