Closed A1X5H04 closed 1 month ago
ListTransition does not provide index
because it has no semantics (the index used by its internal map is not the same as the index of the state array because it contains the element being retired).
You can use key
:
<>
{transition((item, { key }) => (
<input name={key} />
)}
<>
If you don't pass keyExtractor
, the key is a self-incrementing number with no semantics. You can use keyExtractor
to make the key
of each item semantic.
Hi @A1X5H04 , I'm going to close this issue. Do you have any questions?
No, thanks for your reply
Guess I am here again 😅, I was creating a complex form with array, When using the list transition I find out that it does not include index which is necessary to differentiate between forms items, I request you to add include index in the list transition just like how the map does