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

374
Views
concatenate string with prop value received in react/Javascript in a component

how to concatenate a string with a variable's value in javascript (more specifically react).In this ToolsCard component, I am getting the title as prop and I want to make a string 'download title which is being received as prop, how should I do this.I tried the below way but I am getting an error, Is there some alternative to do this?

const ToolsCard = ({title}) => {
const str='download'+{title}
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

const ToolsCard = title => 'download ' + title;

I don't know what else to tell you. You might want to export the ToolsCard function maybe. And you should definitely read some Javascript and React tutorials.

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!