{"id":20447610,"url":"https://github.com/acrool/acrool-react-providers","last_synced_at":"2025-04-13T01:08:25.854Z","repository":{"id":251040674,"uuid":"836219169","full_name":"acrool/acrool-react-providers","owner":"acrool","description":"This is a compose providers avoid nesting for React Function","archived":false,"fork":false,"pushed_at":"2024-12-20T02:39:22.000Z","size":371,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-13T01:08:21.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/acrool.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":null,"code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-07-31T11:51:10.000Z","updated_at":"2024-09-14T10:28:11.000Z","dependencies_parsed_at":"2024-07-31T13:21:43.942Z","dependency_job_id":null,"html_url":"https://github.com/acrool/acrool-react-providers","commit_stats":null,"previous_names":["acrool/acrool-react-providers"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-providers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-providers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-providers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/acrool%2Facrool-react-providers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/acrool","download_url":"https://codeload.github.com/acrool/acrool-react-providers/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248650762,"owners_count":21139681,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T10:28:03.897Z","updated_at":"2025-04-13T01:08:25.833Z","avatar_url":"https://github.com/acrool.png","language":"TypeScript","funding_links":[],"categories":["React underlying structure"],"sub_categories":[],"readme":"# Acrool React Providers\n\n\u003ca href=\"https://acrool-react-providers.pages.dev/\" title=\"Acrool React Providers - This is a compose providers avoid nesting for React Function\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/acrool/acrool-react-providers/main/example/public/og.webp\" alt=\"Acrool React Providers Logo\"/\u003e\n\u003c/a\u003e\n\n\u003cp align=\"center\"\u003e\n    This is a compose providers avoid nesting for React Function\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![NPM](https://img.shields.io/npm/v/@acrool/react-providers.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-providers)\n[![npm](https://img.shields.io/bundlejs/size/@acrool/react-providers?style=for-the-badge)](https://github.com/acrool/@acrool/react-providers/blob/main/LICENSE)\n[![npm](https://img.shields.io/npm/l/@acrool/react-providers?style=for-the-badge)](https://github.com/acrool/react-providers/blob/main/LICENSE)\n\n[![npm downloads](https://img.shields.io/npm/dm/@acrool/react-providers.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-providers)\n[![npm](https://img.shields.io/npm/dt/@acrool/react-providers.svg?style=for-the-badge)](https://www.npmjs.com/package/@acrool/react-providers)\n\n\u003c/div\u003e\n\n\n\n\n## Features\n\n- Compose providers avoid nesting\n- Support type check\n\n## Install\n\n```bash\nyarn add @acrool/react-providers\n```\n\n## Usage\n\nthen in your page\n\n```tsx\nimport composedProviders, {providerWithProps} from \"@acrool/react-providers\";\n\nReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(\n    createElement(composedProviders(\n        [\n            providerWithProps(ReduxProvider, {store}),\n            providerWithProps(ApolloProvider, {client: apolloClient}),\n            providerWithProps(ReactQueryClientProvider, {}),\n            providerWithProps(ReactLocaleProvider, {}),\n            providerWithProps(Router, {history: history, basename: routePrefixPath}),\n            providerWithProps(AxiosClientProvider, {}),\n            providerWithProps(StyleSheetManager, {stylisPlugins: [rtlPlugin]}),\n            providerWithProps(GridThemeProvider, {gridTheme: gridConfig}),\n            providerWithProps(ThemeProvider, {theme: appTheme}),\n            providerWithProps(UIProvider, {}),\n        ]\n    )(App))\n);\n\n```\n\n## License\n\nMIT © [Acrool](https://github.com/acrool) \u0026 [Imagine](https://github.com/imagine10255)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-providers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Facrool%2Facrool-react-providers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Facrool%2Facrool-react-providers/lists"}