Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

213
Visualizações
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
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda