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

203
Views
React Typescript: la alerta de diseño de hormiga no se procesa

Tengo una matriz de messages e intento generar una Alert diferente si el estado es verdadero pero no se muestra en el navegador. Console.log(message) ha mostrado que el message no está vacío.

 return ( <Space direction="vertical" > {messages.map(item => { item.status ? <Alert message={item.title} description={item.statusMessage} type="success" showIcon /> : <Alert message={item.title} description={item.statusMessage} type="error" showIcon /> })} </Space> );
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Tenga en cuenta que esta función map() no devolverá nada, porque su contenido está entre corchetes {} y no entre paréntesis () . También podría usar return item.status ? ... .

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!