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

355
Vistas
What do these three dots do in React?

What does ... in this React code (using JSX) and what is it called?

 <Modal {...this.props} title='Modal heading' animation={false}>
over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

... are called spread attributes which, as the name implies, allow an expression to be expanded.

 let parts = ['two', 'three']; let numbers = ['one', ...parts, 'four', 'five']; // ["one", "two", "three", "four", "five"]

And in this case (I'm going to simplify it).

 // Just assume we have an object like this: var person= { name: 'Alex', age: 35 }

Is:

 <Modal {...person} title='Modal heading' animation={false} />

is equal to

 <Modal name={person.name} age={person.age} title='Modal heading' animation={false} />


So, in short, it's a neat shortcut, we can say .

over 4 years ago · Santiago Trujillo 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