{"id":17776367,"url":"https://github.com/cheton/react-foreach","last_synced_at":"2025-03-15T17:31:32.877Z","repository":{"id":66056597,"uuid":"142958498","full_name":"cheton/react-foreach","owner":"cheton","description":"A React component that renders each element of collection using a function as child component.","archived":false,"fork":false,"pushed_at":"2018-07-31T10:54:58.000Z","size":6,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-29T12:56:56.781Z","etag":null,"topics":["foreach","map","react"],"latest_commit_sha":null,"homepage":"","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/cheton.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,"governance":null}},"created_at":"2018-07-31T03:39:45.000Z","updated_at":"2024-01-06T16:52:42.000Z","dependencies_parsed_at":"2023-02-21T02:16:04.533Z","dependency_job_id":null,"html_url":"https://github.com/cheton/react-foreach","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"6b4d5146800d11956ed332c0324ddf3408c22422"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-foreach","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-foreach/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-foreach/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cheton%2Freact-foreach/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cheton","download_url":"https://codeload.github.com/cheton/react-foreach/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243766696,"owners_count":20344800,"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":["foreach","map","react"],"created_at":"2024-10-26T22:05:22.256Z","updated_at":"2025-03-15T17:31:32.503Z","avatar_url":"https://github.com/cheton.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-foreach [![build status](https://travis-ci.org/cheton/react-foreach.svg?branch=master)](https://travis-ci.org/cheton/react-foreach) [![Coverage Status](https://coveralls.io/repos/github/cheton/react-foreach/badge.svg?branch=master)](https://coveralls.io/github/cheton/react-foreach?branch=master)\n\n[![NPM](https://nodei.co/npm/react-foreach.png?downloads=true\u0026stars=true)](https://nodei.co/npm/react-foreach/)\n\nA React component that renders each element of collection using a function as child component.\n\n## Installation\n\n```\nnpm install --save react react-foreach\n```\n\n## Usage\n\nYou can use lodash's uniqueId() to return unique keys for array children.\n\n```js\n\u003cForEach items={[1, 2, 3, 4, 5]}\u003e\n{(value, index, array) =\u003e (\n    \u003cReact.Fragment key={_uniqueId()}\u003e\n        \u003cListItem\u003e{value}\u003c/ListItem\u003e\n    \u003c/React.Fragment\u003e\n)}\n\u003c/ForEach\u003e\n```\n\n## API\n\n### Properties\n\nName | Type | Default | Description\n:--- | :--- | :------ | :----------\nitems | array | | A list of items to render.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheton%2Freact-foreach","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcheton%2Freact-foreach","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcheton%2Freact-foreach/lists"}