I have an array of images that show into a <li> tag and when I have no more values I want to show the index of the list react .map code example
Example: react list
const todoItems = todos.map((todo) =>
<li key={todo.id}> {todo.text}
</li>
);