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

117
Views
Representación del componente de arranque de reacción de la tabla desde la matriz

Quiero representar un componente de tabla con N filas, donde N corresponde a una longitud de matriz dada, y para cada fila habrá dos columnas: la primera con un parámetro de la matriz de objetos y la segunda con el otro parámetro. ¿Cómo puedo hacer eso?
Aquí hay una columna vertebral

 <Table> <thead> <tr> <th>param #1</th> <th>param #2</th> </tr> </thead> <tbody> ...for array.length-times...( <td>array[0].param1</td> <td>array[0].param2</td> ....) </tbody> </Table>
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Según entiendo su pregunta, puede usar un método map() para hacer eso. Aquí está el código de ejemplo.

 <Table> <thead> <tr> <th>param #1</th> <th>param #2</th> </tr> </thead> <tbody> {yourArray.map(arrayData=>{ return( <tr> <td>arrayData.param1</td> <td>arrayData.param2</td> </tr> ) } )} </tbody> </Table>
about 4 years ago · Juan Pablo Isaza Report
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!