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: 4 months 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 (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-31T10:54:58.000Z (almost 7 years ago)
- Last Synced: 2024-10-29T12:56:56.781Z (8 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 [](https://travis-ci.org/cheton/react-foreach) [](https://coveralls.io/github/cheton/react-foreach?branch=master)
[](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