0.1.12 • Published 1 year ago

react-tpc-foreach v0.1.12

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year 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

1 year ago

0.1.11

1 year ago

0.1.10

1 year ago

0.1.9

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago