How to iterate through array of color codes and set those color codes as a background color to another array of values in react?
let colors = [
"#4e4098",
"#d32884",
"#2baec2",
"#f26945",
"#daac4e",
"#10a273",
"#be8870",
"#903d59",
];
let arr =[1,2,3,4,5,6,........,100];