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

287
Views
React Map Method within Map Method

I am trying to include map method in a map method while getting a list as an element from the first map method.

      {columns &&
        columns.map(column => 
        column.list && column.list?
        (column.list.map((item)=>{
        return (
        <CustomTableCell align="center">{item.name}
        <span>{item.convertMethod(item.id, item.lists)}</span>
        </CustomTableCell>
         );
         })):            
        <CustomTableCell align="center"> {column.name} </CustomTableCell>                                        
           ) }

Error still exists

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

return (
<div className="App"> 
{
  columns.map(column => {
    return (
      column.list && column.list.length > 0 ? (
        column.list.map(item => {
          return (
            <div key={item.name}>{item.name}</div>
          )
        })
  ): ("")
    )
  })
}
</div>
);

demo

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!