Closed xaviervia closed 2 years ago
Currently, the <Map> component will send a Facet containing each item value and a number that is the index of that item to the function that it receives as children. So:
<Map>
children
<Map array={useFacetWrap(['alpha', 'beta', 'gamma'])}> {(item, index) => { /* ... */ }} </Map>
The fact that this index is sent as the second argument is currently not documented and not tested anywhere.
index
Currently, the
<Map>
component will send a Facet containing each item value and a number that is the index of that item to the function that it receives aschildren
. So:The fact that this
index
is sent as the second argument is currently not documented and not tested anywhere.