{"id":16828324,"url":"https://github.com/awmleer/with-wrapper","last_synced_at":"2025-03-17T04:31:50.703Z","repository":{"id":35530625,"uuid":"218219432","full_name":"awmleer/with-wrapper","owner":"awmleer","description":"React HOC for wrapper components.","archived":false,"fork":false,"pushed_at":"2023-01-04T23:40:03.000Z","size":351,"stargazers_count":35,"open_issues_count":15,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-27T17:46:49.156Z","etag":null,"topics":["hoc","react","reactjs","wrapper"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/awmleer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-10-29T06:32:29.000Z","updated_at":"2024-04-19T02:02:31.000Z","dependencies_parsed_at":"2023-01-15T23:01:14.629Z","dependency_job_id":null,"html_url":"https://github.com/awmleer/with-wrapper","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awmleer%2Fwith-wrapper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awmleer%2Fwith-wrapper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awmleer%2Fwith-wrapper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/awmleer%2Fwith-wrapper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/awmleer","download_url":"https://codeload.github.com/awmleer/with-wrapper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243841223,"owners_count":20356446,"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":["hoc","react","reactjs","wrapper"],"created_at":"2024-10-13T11:26:04.644Z","updated_at":"2025-03-17T04:31:50.417Z","avatar_url":"https://github.com/awmleer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# with-wrapper\n\n[![GitHub](https://img.shields.io/github/license/awmleer/with-wrapper.svg?logo=github)](https://github.com/awmleer/with-wrapper)\n[![npm version](https://img.shields.io/npm/v/with-wrapper.svg?logo=npm)](https://www.npmjs.com/package/with-wrapper)\n[![npm downloads](https://img.shields.io/npm/dw/with-wrapper.svg?logo=npm)](https://www.npmjs.com/package/with-wrapper)\n![React](https://img.shields.io/npm/dependency-version/with-wrapper/peer/react?logo=react)\n\nReact HOC for wrapper components.\n\n## Usage\n\n```jsx\nimport {withWrapper} from 'with-wrapper'\n\nexport const App = withWrapper((element, props) =\u003e (\n  \u003cdiv className=\"wrapper\"\u003e\n    {element}\n  \u003c/div\u003e\n))((props) =\u003e {\n  return (\n    \u003cp\u003e\n      This is App.\n    \u003c/p\u003e\n  )\n})\n```\n\nThe above component will be rendered as:\n\n```html\n\u003cdiv class=\"wrapper\"\u003e\n  \u003cp\u003e\n    This is App.\n  \u003c/p\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawmleer%2Fwith-wrapper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fawmleer%2Fwith-wrapper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fawmleer%2Fwith-wrapper/lists"}