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

124
Visualizações
How to create a interface in typescript by grouping a JSON Data?

Suppose there is a set of data which has to be binded to a table using typescript + react.

The data format is as mentioned below

{
  aa_x : "somevalue",
  aa_y : "somevalue",
  aa_y : "somevalue",
  
  bb_x : "somevalue",
  bb_y : "somevalue",
  bb_y : "somevalue",
  
  cc_x : "somevalue",
  cc_y : "somevalue",
  cc_y : "somevalue"
}

Now I have to display it in a table where the value below underscore will be the first td element of each tr tag and the value after underscore will be the table header. Image attached below for the expected output.

enter image description here

What is the best way to create a interface? I dont want to repeat x,y and z 3 times for each of the dataset.

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