1function NameList() {
2 const names = ['Bruce', 'Clark', 'Diana']
3 return (
4 <div>
5 {names.map(name => <h2>{name}</h2>)}
6 </div>
7 )
8}
1materials.map((material,index) => console.log(index +" = " + material + " = " + materials[index]));