Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
<div>
<Block color="red" />
<Block color="green" />
<Block color="blue" />
</div>
const colors = ['red', 'green', 'blue'];
return (
<div>
{colors.map((color, i) => <Block key={i} color={color} />}
</div>
);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question