0.1.12 • Published 2 years ago

react-tpc-foreach v0.1.12

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

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago