Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cheton/react-foreach
A React component that renders each element of collection using a function as child component.
https://github.com/cheton/react-foreach
foreach map react
Last synced: 23 days ago
JSON representation
A React component that renders each element of collection using a function as child component.
- Host: GitHub
- URL: https://github.com/cheton/react-foreach
- Owner: cheton
- License: mit
- Created: 2018-07-31T03:39:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-07-31T10:54:58.000Z (over 6 years ago)
- Last Synced: 2024-05-21T17:09:46.212Z (6 months ago)
- Topics: foreach, map, react
- Language: JavaScript
- Homepage:
- Size: 5.86 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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)
[![NPM](https://nodei.co/npm/react-foreach.png?downloads=true&stars=true)](https://nodei.co/npm/react-foreach/)
A React component that renders each element of collection using a function as child component.
## Installation
```
npm install --save react react-foreach
```## Usage
You can use lodash's uniqueId() to return unique keys for array children.
```js
{(value, index, array) => (
{value}
)}```
## API
### Properties
Name | Type | Default | Description
:--- | :--- | :------ | :----------
items | array | | A list of items to render.## License
MIT