score:0

Accepted answer
const CardList = ({ results0, results1, results2, results3, results4 }) => {
    return (
        <Fragment>
            {[...results0, ...results1, ...results2, ...results3, ...results4].map((result, i) =>
                (<Card
                    key={i}
                    name={result.name}
                    skin_color={result.skin_color}
                    eye_color={result.eye_color}
                    birth_year={result.birth_year}
                    gender={rresult.gender}
                />))
            }
        </Fragment>
    );
};
export default CardList;

score:0

[results0, results1, results2, results3, results4].map((result, i) => (
  <Fragment key={i}>
    {result.map(renderPerson)}
  </Fragment>
)) 

Related Query

More Query from same tag