Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

155
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!