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

127
Vistas
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 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