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

147
Views
reaccionar implementar condición para mostrar y ocultar

Hay dos cuadros de texto JO y PO

  1. Si el usuario ambos deberían ocultarse.
  2. Si el administrador oculta JO y muestra PO.
  3. si el superadministrador muestra ambos

¿Necesita implementar la lógica anterior en reaccionar o javascript?

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

0

Si entiendo tu pregunta correctamente, puedes hacer esto:

 If i understand your question correctly you can do like this: const role = getRole() {(role !== "user" && role !== "admin") || role==='superadmin' && <TextBoxJo />} {(role !== "user" && role === "admin") || role==='superadmin' && <TextBoxPo />}

incluso puede poner estas condiciones y usar esa función, hay varias formas de hacerlo.

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!