Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

201
Vistas
display 2 different arrays in a material ui react card

I am trying to get 2 separate arrays to be able to be displayed, preferably on a single card.

Here is my current code attempting to get them on 2 separate cards that will be next to each other, but the second array.map will show

Uncaught TypeError: segmentData.map(...) is not a function

Ideally I would like to combine the info from both arrays on a single card.

return (
    (segmentData.map((segment) => (
    <Card className={classes.root}>
      <CardActionArea>
        <CardContent>
          <Typography gutterBottom variant="h5" component="h2">
            {segment.flightNumber}
          </Typography>
          <Typography variant="body2" color="textSecondary" component="p">
            This CardContent is wrapped in a CardActionsArea, so this text and
            the above header are wrapped in a ButtonBase, which means they
            behave like a Button.
          </Typography>
        </CardContent>
      </CardActionArea>
    </Card>

    )))

    (pricedItineraryData.map((priced) => (
      <Card className={classes.root}>
        <CardActionArea>
          <CardContent>
            <Typography gutterBottom variant="h5" component="h2">
              {priced.totalFare}
            </Typography>
            <Typography variant="body2" color="textSecondary" component="p">
              This CardContent is wrapped in a CardActionsArea, so this text and
              the above header are wrapped in a ButtonBase, which means they
              behave like a Button.
            </Typography>
          </CardContent>
        </CardActionArea>
      </Card>
      )))
  );
};
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda