map with item and index in reac code example
Example: jsx map with index
materials.map((material,index) => console.log(index +" = " + material + " = " + materials[index]));
materials.map((material,index) => console.log(index +" = " + material + " = " + materials[index]));