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

211
Views
Table inside map is not rendering

I'm iterating into a JSON file using map twice, but when I try to render the returned value of the second one, I got nothing. By console, the value is shown properly.

const Container2 = (props) => {

  const data = Array.from(props.data);

  return(
    <div>
      <table>
        <thead>
          <tr>
            <th>Name</th>
          </tr>
        </thead>
        <tbody>
          {data.map(item => {
            item.metadata.map(item2 => {
              return(
                <tr key={data.id}>
                  <td>{item2.metadata.name}</td> //here I got nothing
                </tr>
              )
            })
          })}
        </tbody>
      </table>
    </div>
  )
}

Why am I getting nothing when rendering the returned value of the second map?

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!