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

123
Views
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
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!