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

206
Views
El valor no se muestra correctamente en el cuerpo de la tabla en reaccionar js

Necesita una salida como esta . Los encabezados son dinámicos y el cuerpo no se representa correctamente. por favor ayúdame a arreglarlo.

aquí mi código:

 { data?.show && <th className="text-center" key={index}> <td colSpan={data?.st && data.st.length} style={{ border: "none" }}> {data.label} </td> <tr className="p-0"> { data?.st?.map(sub => { return ( <td style={{ borderColor: "black" , fontWeight: "400" }}> {sub} </td> ) }) } </tr> </th> } <tbody> { res.datas && res.datas.map((ele, index) => { var eles = Object.values(ele); return ( <> <tr key={index}> <td align="center">{1 + index}</td> { eles.map(dt => { return ( <td align={typeof (dt)==="string" ? "left" : "center" }> {dt} </td> ) } ) } </tr> </> ) }) } </tbody>

Pero obtuve una salida como esta. este El resultado esperado se agrega en la parte superior.

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!