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

149
Vistas
Iterator .map return [object object] when I have a tag inside

I have this array:

[
    {
      label: "Linkedin",
      social_handle: "linked_in",
      handle: "https://www.linkedin.com/in/",
      content: "",
    },
    {
      label: "Twitter",
      social_handle: "twitter",
      input_handle: "https://twitter.com/",
      input_content: "",
    },
    {
      label: "Website",
      social_handle: "website",
      input_handle: "",
      input_content: "",
    }]

And I iterate him in the next code:

<select
   onChange={(e) => props.handle(e)}
   className="form-control"
>
  {props.socials_arr.map(({ label, social_handle }) => (
  <option key={social_handle} defaultValue={social_handle}>
    <i class="fas fa-linkedin"></i> {label}
  </option>
  ))}
</select>

But this return me this this

How I can solve the [object object] and have the icon there?

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