Company logo
  • Empleos
  • Bootcamp
  • Acerca de nosotros
  • Para profesionales
    • Inicio
    • Empleos
    • Cursos y retos
    • Preguntas
    • Profesores
    • Bootcamp
  • Para empresas
    • Inicio
    • Nuestro proceso
    • Planes
    • Pruebas
    • Nómina
    • Blog
    • Comercial
    • Calculadora

0

94
Vistas
How to write a Ternary Operator for this operation?

I want to write a Ternary Operator below so the when this.props.location.state.programId is equal to r.programschosen.map(e => e.id) it outputs the name r.programschosen.map(e => e.program_name). How to write it below?

    {
      id: "program",
      label: "Program",
      customCell: r => (
        <td>
          {this.props.location.state.programId}
          {r.programschosen.map(e => e.program_name).join(", ")}{" "}
        </td>
      )
    },
7 months ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos