I want to map array and get indexes in return (currentValue is not needed). I want to avoid using unused arguments, so is there better way to do this:
array.map((el, index) => { // el is not used anywhere
return (
<div>X</div>
);
})
_in that case.index, either.>at the end of</div