0.1.12 • Published 11 months ago

react-tpc-foreach v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

react-tpc-foreach

A React component that renders each element of collection using a function as child component.

Installation

npm install --save react-tpc-foreach

Usage

<ForEach of={[1, 2, 3, 4, 5]} render={(value, index) => (
	<ListItem>{value}</ListItem>
)} />

API

Properties

NameTypeDefaultDescription
ofarrayA list of items to render.
renderfunctionA function that returns a React element for each item in the list. The function is called with two arguments: the item and the index of the item in the list.

License

MIT

0.1.12

11 months ago

0.1.11

11 months ago

0.1.10

11 months ago

0.1.9

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.1.6

11 months ago

0.1.5

11 months ago

0.1.4

11 months ago

0.1.3

11 months ago

0.1.2

12 months ago

0.1.1

12 months ago

0.1.0

12 months ago