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

352
Views
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 answers
Answer question

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 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!