Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

95
Vistas
ES6 Arrow function syntax

I've tried searching the web for an answer, or I may just be thinking about it too much. While watching some React videos I see devs using arrow functions two ways:

  1. const name = () => {} -- here ending with curly braces and
  2. const name = () => () -- here ending with parentheses

Is there a difference between the 2?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

The second will return the value of the expression inside the brackets after evaluation.

The first will require a return statement to return a value.

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda