react map index single object 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]));