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

148
Views
ReactJs - Remplace value of a composant in a children

I have a question about component in ReactJs :

I created component to do my header of my site but i have a problem; How do i remplace value (like ,

or things like that) dynamically, maybe my question dont make sense so i give you an exemple :

If i want to do 3 pages with a similary header but the text change according to the page i am, like :

Page 1 : <h1>Hello</h1>
Page 2 : <h1>Hi</h1>
Page 3 : <h1>Good morning </h1> 

It is possible ? I've tried props but it doesnt work (or i dont success to)

Concretely, I want to be able to reuse my component but by being able to modify the texts which are there

Sorry for my bad english btw

Thank you

about 4 years ago · Juan Pablo Isaza
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!